
    <`                         d Z ddlmZ ddlZ ej        e          Z G d de          Z ede	          d             Z
dd	lT dd
lmZ dS )a  fontTools.ttLib -- a package for dealing with TrueType fonts.

This package offers translators to convert TrueType fonts to Python
objects and vice versa, and additionally from Python to TTX (an XML-based
text format) and vice versa.

Example interactive session:

Python 1.5.2c1 (#43, Mar  9 1999, 13:06:43)  [CW PPC w/GUSI w/MSL]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>> from fontTools import ttLib
>> tt = ttLib.TTFont("afont.ttf")
>> tt['maxp'].numGlyphs
242
>> tt['OS/2'].achVendID
'B&H '
>> tt['head'].unitsPerEm
2048
>> tt.saveXML("afont.ttx")
Dumping 'LTSH' table...
Dumping 'OS/2' table...
Dumping 'VDMX' table...
Dumping 'cmap' table...
Dumping 'cvt ' table...
Dumping 'fpgm' table...
Dumping 'glyf' table...
Dumping 'hdmx' table...
Dumping 'head' table...
Dumping 'hhea' table...
Dumping 'hmtx' table...
Dumping 'loca' table...
Dumping 'maxp' table...
Dumping 'name' table...
Dumping 'post' table...
Dumping 'prep' table...
>> tt2 = ttLib.TTFont()
>> tt2.importXML("afont.ttx")
>> tt2['maxp'].numGlyphs
242
>>

    )deprecateFunctionNc                       e Zd ZdS )
TTLibErrorN)__name__
__module____qualname__     8lib/python3.11/site-packages/fontTools/ttLib/__init__.pyr   r   2   s          r
   r   zuse logging instead)categoryc           
          dd l }t          | |                    d|                    |                                                     z              d S )Nr   z  (%H:%M:%S))timeprintstrftime	localtime)msgr   s     r   debugmsgr   4   sF    sT]]>4>>$))+++F+FGGGHHHHHr
   )*)TTCollection)__doc__fontTools.misc.loggingToolsr   logging	getLoggerr   log	Exceptionr   DeprecationWarningr   fontTools.ttLib.ttFontfontTools.ttLib.ttCollectionr   r	   r
   r   <module>r      s   ) )V : 9 9 9 9 9  g!! ! ! ! ! ! ! ! !(3EFFFI I GFI % $ $ $ 5 5 5 5 5 5 5 5r
   