
    }fg                         d dl mZmZ d dlmZ d dlZ ej        d          ZddZe	dk    rd dl
Z
 e
j         e                       dS dS )    )	_add_avarload_designspace)makeOutputFileNameNzfontTools.varLib.avarc                    | ddl }|j        dd         } ddlm} ddlm} ddlm} ddl}|	                    dd           }|
                    d	d
d           |
                    ddd           |
                    ddt          d           |
                    dddd           |                    |           } ||j        rdnd            ||j                  }d|vrt                              d           dS d |d         j        D             }	t%          |j                  }
d|v rt                              d            |d= t+          ||
j        |
j        |	           |j        t1          |j        d!d"#          }n|j        }|r2t                              d$|           |                    |           dS dS )%z8Add `avar` table from designspace file to variable font.Nr      )configLogger)TTFont)DesignSpaceDocumentzfonttools varLib.avar)descriptionfontzvarfont.ttfzVariable-font file.)metavarhelpdesignspacezfamily.designspacezDesignspace file.z-oz--output-filezOutput font file name.)typer   z-vz	--verbose
store_truezRun more verbosely.)actionr   INFOWARNING)levelfvarzNot a variable font.c                     g | ]	}|j         
S  )axisTag).0as     N/var/www/rtfcompare/venv/lib/python3.11/site-packages/fontTools/varLib/avar.py
<listcomp>zmain.<locals>.<listcomp>0   s    555a	555    avarz(avar table already present, overwriting.Tz.avar)	overWritesuffixz	Saving %s)sysargv	fontToolsr   fontTools.ttLibr	   fontTools.designspaceLibr
   argparseArgumentParseradd_argumentstr
parse_argsverboser   logerroraxesr   r   warningr   axisMappingsoutput_filer   infosave)argsr"   r   r	   r
   r'   parseroptionsr   axisTagsdsoutfiles               r   mainr;      sI    |


x|&&&&&&&&&&&&<<<<<<OOO$$N %  F <QRRR
3:M     %	     k,5J     %%GL'/@yBBBB6',DT>>		()))q554<#4555H	'-	.	.B~~>???LdBGR_h777"$W\T'RRR% g&&&		' r   __main__)N)fontTools.varLibr   r   fontTools.misc.cliToolsr   logging	getLoggerr-   r;   __name__r"   exitr   r   r   <module>rC      s    8 8 8 8 8 8 8 8 6 6 6 6 6 6 g/008 8 8 8v zJJJCHTTVV r   