L i}xddlZddlmZmZmZddlddlmZddZe dk(rejeyy)N)OPTIMIZE_FONT_SPEED TTLibErrorTTLibFileIsCollectionError)*) TTCollectioncddlm}|tjdd}ddl}|j ddd}|j d d d d |j d dddd|j ddddd|j dddd|j dddd|j d d!d"d#$|j d%d&dd'(|j d)d*d"d+$|j d,d-d"d.$|j d/dd01|j|}|jt|jnd}|j}|j}|j}|j} |j} |j} |j } g} |j"D]9} t%|| | ||2}| r| |j&t(<| j+|;| .|d4urd g} n&| r"hd5j5j7} ng} | D]6}d6| vr|j9d | vr| n|j7D]}|| 8|]t;| dk(r|| d_ | dj=|y| t?d7t/}| |_|j=|yy#t,$r,t/||3}| j1|j2Y;wxYw)8aOpen/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) configLoggerNzfonttools 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. ) descriptionepilogfontrz Font file.)metavarnargshelpz-tz--tabletableappendzTables to decompile.)ractionrz-oz--outputFILEz Output file.)rdefaultrz-yNUMBERz%Font number to load from collections.z--lazy store_truezLoad fonts lazily.)rrrz --no-lazylazy store_falsezLoad fonts immediately.)destrrz--flavorflavorz)Flavor of output font. 'woff' or 'woff2'.)rrrz--no-recalc-timestamprecalcTimestampz,Keep the original font 'modified' timestamp.z-b recalcBBoxeszGDon't recalc glyph bounding boxes: use the values in the original font.z--optimize-font-speedzEnable optimizations that prioritize speed over file size. This mainly affects how glyf table and gvar / VARC tables are compiled.)rr)rr fontNumberr)rF>VARCglyfgvar GlyphOrderz"Cannot set flavor for collections.) fontToolsr sysargvargparseArgumentParser add_argument parse_argsyintoutputrrrrroptimize_font_speedr TTFontcfgrrrrextendfonts intersectionkeys getGlyphOrderlensaver)argsr r'parseroptionsroutFilerrtablesrroptimizeFontSpeedr2fr collectionrs ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/fontTools/ttLib/__main__.pymainrAsG0' |xx|  $ $E % F c M  i@V  j&$^  h1X t:N &=V   8     ;     V    Q %G#*99#8WYYdJnnG <rJs: WW$5I%X z CHHTVrI