
    Ngs                     z    d dl Z d dlmZmZ d dlT d dlmZ ddZedk    r e j	         e                       dS dS )    N)
TTLibErrorTTLibFileIsCollectionError)*)TTCollectionc                    ddl m} | t          j        dd         } ddl}|                    ddd          }|                    d	d	d
d           |                    dddd
d           |                    ddddd           |                    dddd           |                    dddd           |                    ddd d!"           |                    d#d$dd%&           |                    |           }|j        t          |j                  nd}|j
        }|j        }|j        }|j        |j        nd
g}	g }
|j        D ]e}	 t          |||'          }|
                    |           +# t"          $ r. t%          ||(          }|
                    |j                   Y bw xY w|d)u r*|
D ]'}d
|	vr|	n|                                D ]
}||          (|zt-          |
          dk    r*||
d         _        |
d                             |           dS |t1          d*          t%                      }|
|_        |                    |           dS dS )+a  Open/save fonts with TTFont() or TTCollection()

      ./fonttools ttLib [-oFILE] [-yNUMBER] files...

    If multiple files are given on the command-line,
    they are each opened (as a font or collection),
    and added to the font list.

    If -o (output-file) argument is given, the font
    list is then saved to the output file, either as
    a single font, if there is only one font, or as
    a collection otherwise.

    If -y (font-number) argument is given, only the
    specified font from collections is opened.

    The above allow extracting a single font from a
    collection, or combining multiple fonts into a
    collection.

    If --lazy or --no-lazy are give, those are passed
    to the TTFont() or TTCollection() constructors.
    r   )configLoggerN   zfonttools ttLibz/Open/save fonts with TTFont() or TTCollection()a"  
		If multiple files are given on the command-line,
		they are each opened (as a font or collection),
		and added to the font list.

		The above, when combined with -o / --output,
		allows for extracting a single font from a
		collection, or combining multiple fonts into a
		collection.
		)descriptionepilogfontr   z
Font file.)metavarnargshelpz-tz--tabletablezTables to decompile.z-oz--outputFILEzOutput file.)r   defaultr   z-yNUMBERz%Font number to load from collections.z--lazy
store_truezLoad fonts lazily.)actionr   r   z	--no-lazylazystore_falsezLoad fonts immediately.)destr   r   z--flavorflavorz)Flavor of output font. 'woff' or 'woff2'.)r   r   r   )
fontNumberr   )r   Fz"Cannot set flavor for collections.)	fontToolsr   sysargvargparseArgumentParseradd_argument
parse_argsyintoutputr   r   r   r   TTFontappendr   r   extendfontskeyslensaver   )argsr   r   parseroptionsr   outFiler   r   tablesr)   fr   
collectionr   s                  T/var/www/html/ai-engine/env/lib/python3.11/site-packages/fontTools/ttLib/__main__.pymainr5      s%   0 '&&&&&|x|OOO$$E	 %  F cMMM
i:P     j&$^     h1X     t:N     &=V     8	     %%G#*9#8WYdJnG<D^F%m7W]]cUFE\ + +	+!
>>>DLL) 	+ 	+ 	+%ad333JLL)*****	+ u}} 	 	D#&f#4#4$))++  U u::??$E!HO!HMM'"""""! !EFFF%J$JOOG$$$$$ s   'E665F.-F.__main__)N)
r   fontTools.ttLibr   r   fontTools.ttLib.ttFontfontTools.ttLib.ttCollectionr   r5   __name__exit     r4   <module>r>      s    



 B B B B B B B B $ $ $ $ 5 5 5 5 5 5b% b% b% b%J zCHTTVV r=   