ó
    oñ:iR…  ã                   óÐ  • S /r  SSKJrJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SSKrSS	KJr  \" S–0 S
S_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_6r\" S SSSSSSSSSSSSSSS!9r\" S"SS#9r\" S$SSSSSSSSS%9	r\" S–0 S
S _S&S_S'S_S(S_S)S_S*S_S+S_S,S_S-S_S.S_S/S_S0S_S1S_S2S_S3S_S4S_S5S_6r\" S–0 S
S _S&S_S'S_S(S_S6S_S7S_S8S_S9S_S-S_S.S_S0S_S1S_S2S_S3S_S:S_S4S_S;S_6r\" S–0 S<S_S=S_S>S_S?S_S@SA_SBSC_SDSE_SFSG_SHSI_SJSK_SLSM_SNSO_SPSQ_SRSS_STSU_SVSW_SXSY_SZS[_S\S]_S^S__S`Sa_SbSc_SdSe_SfSg_ShSi_6r\	" 5       r\" S–0 SBS_SjS_SkSl_SmSC_SnSA_SoS_SpS_SqS_SrS_SsS_StS_SuS_SvS_SwS_SxS_SyS_Sz\_S{S_S|S_S}S_S~S_SS€_S�S_S‚S_SƒS_S„S_S…S_S†S_S‡S_SˆS_S‰S_SŠS_S‹S_SŒS_S�S_SŽS�_S�S_S‘S_S’S_6r " S“ S \5      rS” rS• rg)—ÚFontBuilderé   )ÚTTFontÚnewTable)Úcmap_classes©Ú	flagCubic)ÚPanose)ÚtimestampNowé    N)ÚOrderedDictÚtableVersiong      ð?ÚfontRevisionÚcheckSumAdjustmentÚmagicNumberiõ<_Úflagsé   Ú
unitsPerEmiè  ÚcreatedÚmodifiedÚxMinÚyMinÚxMaxÚyMaxÚmacStyleÚlowestRecPPEMÚfontDirectionHinté   ÚindexToLocFormatÚglyphDataFormaté   )r   Ú	numGlyphsÚ	maxPointsÚmaxContoursÚmaxCompositePointsÚmaxCompositeContoursÚmaxZonesÚmaxTwilightPointsÚ
maxStorageÚmaxFunctionDefsÚmaxInstructionDefsÚmaxStackElementsÚmaxSizeOfInstructionsÚmaxComponentElementsÚmaxComponentDepthi P  )r   r!   ç      @)	Ú
formatTypeÚitalicAngleÚunderlinePositionÚunderlineThicknessÚisFixedPitchÚminMemType42ÚmaxMemType42ÚminMemType1ÚmaxMemType1ÚascentÚdescentÚlineGapÚadvanceWidthMaxÚminLeftSideBearingÚminRightSideBearingÚ
xMaxExtentÚcaretSlopeRiseÚcaretSlopeRunÚcaretOffsetÚ	reserved0Ú	reserved1Ú	reserved2Ú	reserved3ÚmetricDataFormatÚnumberOfHMetricsÚadvanceHeightMaxÚminTopSideBearingÚminBottomSideBearingÚ
yMaxExtentÚ	reserved4ÚnumberOfVMetricsÚ	copyrightÚ
familyNameÚ	styleNameÚuniqueFontIdentifierÚfullNameé   Úversioné   ÚpsNameé   Ú	trademarké   Úmanufactureré   Údesigneré	   Údescriptioné
   Ú	vendorURLé   ÚdesignerURLé   ÚlicenseDescriptioné   ÚlicenseInfoURLé   ÚtypographicFamilyé   ÚtypographicSubfamilyé   ÚcompatibleFullNameé   Ú
sampleTexté   ÚpostScriptCIDFindfontNameé   ÚwwsFamilyNameé   ÚwwsSubfamilyNameé   ÚlightBackgroundPaletteé   ÚdarkBackgroundPaletteé   ÚvariationsPostScriptNamePrefixé   ÚxAvgCharWidthÚusWeightClassi�  ÚusWidthClassÚfsTypeÚySubscriptXSizeÚySubscriptYSizeÚySubscriptXOffsetÚySubscriptYOffsetÚySuperscriptXSizeÚySuperscriptYSizeÚySuperscriptXOffsetÚySuperscriptYOffsetÚyStrikeoutSizeÚyStrikeoutPositionÚsFamilyClassÚpanoseÚulUnicodeRange1ÚulUnicodeRange2ÚulUnicodeRange3ÚulUnicodeRange4Ú	achVendIDz????ÚfsSelectionÚusFirstCharIndexÚusLastCharIndexÚsTypoAscenderÚsTypoDescenderÚsTypoLineGapÚusWinAscentÚusWinDescentÚulCodePageRange1ÚulCodePageRange2ÚsxHeightÚ
sCapHeightÚusDefaultCharÚusBreakCharé    ÚusMaxContextÚusLowerOpticalPointSizeÚusUpperOpticalPointSizec                   ó  • \ rS rSrS%S jrS rS rS rS rS r	S	 r
S&S
 jrS'S jrS rS rS(S jrS rS'S jrS rS)S jrS rS rS rS rS rS rS rS rS)S jrS*S jrS rS rS+S jr S,S  jr!     S-S! jr"   S.S" jr#S/S# jr$S$r%g)0r   i8  Nc                 óÀ   • UcF  [        SS9U l        X0l        [        5       nUc   eU R	                  UUUUS9  U R                  5         gUb   eX l        SU;   U l        g)aN  Initialize a FontBuilder instance.

If the `font` argument is not given, a new `TTFont` will be
constructed, and `unitsPerEm` must be given. If `isTTF` is True,
the font will be a glyf-based TTF; if `isTTF` is False it will be
a CFF-based OTF.

The `glyphDataFormat` argument corresponds to the `head` table field
that defines the format of the TrueType `glyf` table (default=0).
TrueType glyphs historically can only contain quadratic splines and static
components, but there's a proposal to add support for cubic Bezier curves as well
as variable composites/components at
https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1.md
You can experiment with the new features by setting `glyphDataFormat` to 1.
A ValueError is raised if `glyphDataFormat` is left at 0 but glyphs are added
that contain cubic splines or varcomposites. This is to prevent accidentally
creating fonts that are incompatible with existing TrueType implementations.

If `font` is given, it must be a `TTFont` instance and `unitsPerEm`
must _not_ be given. The `isTTF` and `glyphDataFormat` arguments will be ignored.
NF)ÚrecalcTimestamp)r   r   r   r   Úglyf)r   ÚfontÚisTTFr
   Ú	setupHeadÚ	setupMaxp)Úselfr   r¨   r©   r   Únows         ÚX/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/fontTools/fontBuilder.pyÚ__init__ÚFontBuilder.__init__9  sr   € ð, ‰<Ü¨uÑ5ˆDŒIØŒJÜ“.ˆCØÑ)Ð)Ð)Ø�N‰NØ%ØØØ /ð	 ñ ð �N‰NÕàÑ%Ð%Ð%ØŒIØ 4™ˆD�Jó    c                 ó:   • U R                   R                  U5        g)zWSave the font. The 'file' argument can be either a pathname or a
writable file object.
N)r¨   Úsave)r¬   Úfiles     r®   r³   ÚFontBuilder.save`  s   € ð 	�	‰	�‰�tÕr±   c                 óÌ   • [        U5      =o@R                  U'   UR                  5        H  u  pV[        XEU5        M     UR                  5        H  u  pV[        XEU5        M     U$ ©N)r   r¨   ÚitemsÚsetattr)r¬   ÚtableTagÚdefaultsÚvaluesÚtableÚkÚvs          r®   Ú_initTableWithValuesÚ FontBuilder._initTableWithValuesf  sV   € Ü&.¨xÓ&8Ð8ˆ—	‘	˜(Ñ#Ø—N‘NÖ$‰DˆAÜ�E˜aÖ ñ %à—L‘L–N‰DˆAÜ�E˜aÖ ñ #àˆr±   c                 ól   • U R                   U   nUR                  5        H  u  pE[        X4U5        M     g r·   )r¨   r¸   r¹   )r¬   rº   r¼   r½   r¾   r¿   s         r®   Ú_updateTableWithValuesÚ"FontBuilder._updateTableWithValuesn  s,   € Ø—	‘	˜(Ñ#ˆØ—L‘L–N‰DˆAÜ�E˜aÖ ò #r±   c                 ó2   • U R                  S[        U5        g)zoCreate a new `head` table and initialize it with default values,
which can be overridden by keyword arguments.
ÚheadN)rÀ   Ú_headDefaults©r¬   r¼   s     r®   rª   ÚFontBuilder.setupHeads  ó   € ð 	×!Ñ! &¬-¸Õ@r±   c                 ó(   • U R                  SU5        g)zNUpdate the head table with the fields and values passed as
keyword arguments.
rÆ   N)rÃ   rÈ   s     r®   Ú
updateHeadÚFontBuilder.updateHeady  s   € ð 	×#Ñ# F¨FÕ3r±   c                 ó:   • U R                   R                  U5        g)z!Set the glyph order for the font.N)r¨   ÚsetGlyphOrder)r¬   Ú
glyphOrders     r®   ÚsetupGlyphOrderÚFontBuilder.setupGlyphOrder  s   € à�	‰	×Ñ 
Õ+r±   c                 ó>  • / nU(       a  [        U5      OSnUS:”  a@  [        S UR                  5        5       5      n[        USSS5      nUR	                  U5        OUnSn[        XhSS5      n	 U	R                  U R                  5        UR	                  U	5        [        XhSS5      n
UR	                  U
5        Ubg  0 nU H:  u  pÍnUR                  U5      U:X  a  S
nXÛ;  a  / X½'   X½   R	                  XÎ45        M<     [        0 SSS5      nX¿l        UR	                  U5        [        S5      U R                  S'   SU R                  S   l        X@R                  S   l        g
! [        R                   a%    U(       d  [        S	5      eSn[        XhSS5      n	 GNf = f)ae  Build the `cmap` table for the font. The `cmapping` argument should
be a dict mapping unicode code points as integers to glyph names.

The `uvs` argument, when passed, must be a list of tuples, describing
Unicode Variation Sequences. These tuples have three elements:
    (unicodeValue, variationSelector, glyphName)
`unicodeValue` and `variationSelector` are integer code points.
`glyphName` may be None, to indicate this is the default variation.
Text processors will then use the cmap to find the glyph name.
Each Unicode Variation Sequence should be an officially supported
sequence, but this is not policed.
r   iÿÿ  c              3   ó<   #   • U  H  u  pUS :  d  M  X4v •  M     g7f)r    N© )Ú.0r¾   r¿   s      r®   Ú	<genexpr>Ú0FontBuilder.setupCharacterMap.<locals>.<genexpr>“  s   é € ÐSÒ3C©4¨1ÀqÈ7Á{£ ¥Ò3Cùs   ‚’
rd   r   r`   rT   r   zFcmap format 4 subtable overflowed; sort glyph order by unicode to fix.Nrh   rV   Úcmap)ÚmaxÚdictr¸   ÚbuildCmapSubTableÚappendÚcompiler¨   ÚstructÚerrorÚ
ValueErrorÚgetÚuvsDictr   r   Útables)r¬   ÚcmappingÚuvsÚallowFallbackÚ	subTablesÚhighestUnicodeÚcmapping_3_1ÚsubTable_3_10ÚformatÚsubTable_3_1ÚsubTable_0_3rã   ÚunicodeValueÚvariationSelectorÚ	glyphNameÚuvsSubTables                   r®   ÚsetupCharacterMapÚFontBuilder.setupCharacterMapƒ  s™  € ð ˆ	Þ*2œ˜Xœ¸ˆØ˜FÓ"ÜÑS°8·>±>Ô3CÓSÓSˆLÜ-¨h¸¸A¸rÓBˆMØ×Ñ˜]Õ+à#ˆLØˆÜ(¨¸qÀ!ÓDˆð		IØ× Ñ  §¡Ô+ð 	×Ñ˜Ô&Ü(¨¸qÀ!ÓDˆØ×Ñ˜Ô&à‰?ØˆGÛ>AÑ:�°Ø—<‘< Ó-°Ó:à $�IØ$Ó3Ø13�GÑ.ØÑ*×1Ñ1°<Ð2KÖLñ ?Bô ,¨B°°A°qÓ9ˆKØ")ÔØ×Ñ˜[Ô)ä$ VÓ,ˆ�	‰	�&ÑØ)*ˆ�	‰	�&ÑÔ&Ø#,�	‰	�&ÑÕ øô7 �|‰|ó 	Iæ Ü Ø\óð ð ˆFÜ,¨\À1ÀaÓH‹Lð	Iús   Á/E# Å#5FÆFc           	      ó*  • [        S5      =o@R                  S'   / Ul        UR                  5        H_  u  pV[	        U[
        5      (       a  UnO	[        U   n[	        U[        5      (       a	  [        US9nUR                  X`R                  XrUS9  Ma     g)aÞ  Create the `name` table for the font. The `nameStrings` argument must
be a dict, mapping nameIDs or descriptive names for the nameIDs to name
record values. A value is either a string, or a dict, mapping language codes
to strings, to allow localized name table entries.

By default, both Windows (platformID=3) and Macintosh (platformID=1) name
records are added, unless any of `windows` or `mac` arguments is False.

The following descriptive names are available for nameIDs:

    copyright (nameID 0)
    familyName (nameID 1)
    styleName (nameID 2)
    uniqueFontIdentifier (nameID 3)
    fullName (nameID 4)
    version (nameID 5)
    psName (nameID 6)
    trademark (nameID 7)
    manufacturer (nameID 8)
    designer (nameID 9)
    description (nameID 10)
    vendorURL (nameID 11)
    designerURL (nameID 12)
    licenseDescription (nameID 13)
    licenseInfoURL (nameID 14)
    typographicFamily (nameID 16)
    typographicSubfamily (nameID 17)
    compatibleFullName (nameID 18)
    sampleText (nameID 19)
    postScriptCIDFindfontName (nameID 20)
    wwsFamilyName (nameID 21)
    wwsSubfamilyName (nameID 22)
    lightBackgroundPalette (nameID 23)
    darkBackgroundPalette (nameID 24)
    variationsPostScriptNamePrefix (nameID 25)
Úname©Úen)ÚttFontÚnameIDÚwindowsÚmacN)
r   r¨   Únamesr¸   Ú
isinstanceÚintÚ_nameIDsÚstrrÛ   ÚaddMultilingualName)r¬   ÚnameStringsrû   rü   Ú	nameTableÚnameNameÚ	nameValuerú   s           r®   ÚsetupNameTableÚFontBuilder.setupNameTable¹  sŠ   € ôJ )1°Ó(8Ð8ˆ	—I‘I˜fÑ%Øˆ	Œà#.×#4Ñ#4Ö#6ÑˆHÜ˜(¤C×(Ñ(Ø!‘ä! (Ñ+�Ü˜)¤S×)Ñ)Ü  IÑ.�	Ø×)Ñ)Ø§)¡)°FÐQTð *ó ò $7r±   c                 ór  • U R                  S[        U5        SU;  a?  SU R                  ;   d   S5       eU R                  S   R                  U R                  5        SU;   dU  SU;   dN  SU;   dG  SU;   d@  SU R                  ;   d   S	5       eU R                  S   R	                  U R                  5        g
g
g
g
g
)zoCreate a new `OS/2` table and initialize it with default values,
which can be overridden by keyword arguments.
zOS/2r}   Úhmtxz6the 'hmtx' table must be setup before the 'OS/2' tabler�   rŽ   r�   rÙ   z6the 'cmap' table must be setup before the 'OS/2' tableN)rÀ   Ú_OS2Defaultsr¨   ÚrecalcAvgCharWidthÚrecalcUnicodeRangesrÈ   s     r®   ÚsetupOS2ÚFontBuilder.setupOS2ì  sÆ   € ð 	×!Ñ! &¬,¸Ô?Ø &Ó(à˜$Ÿ)™)Ó#ðHàGóHØ#à�I‰I�fÑ×0Ñ0°·±Ô;à Ó'Ø  FÓ*Ø  FÓ*Ø  FÓ*ð ˜$Ÿ)™)Ó#ðHàGóHØ#à�I‰I�fÑ×1Ñ1°$·)±)Õ<ð +ð +ð +ð (r±   c                 óž  • SSK JnJnJnJnJn	Jn
  U R                  (       a   eSU R                  l	        U" 5       nSUl
        SUl        U R                  Ul        U/Ul        U" 5       Ul        U	" 5       nXËl        U
" 5       nUR!                  5        H  u  pï[#        XÞU5        M     S nS nU" 5       nU R                  R%                  5       Ul        UUl        UR                  Ul        UR!                  5        H  u  pï[#        UXï5        M     SU;  a)  SU R                  S   R*                  -  nUSSUSS/Ul        U" S UR&                  XÍUU5      nUR!                  5        H  u  nnUUl        UUl        UUU'   M     UUl        UR                  R3                  U5        [5        S5      U R                  S'   X°R                  S   l        g )Nr   )Ú
CFFFontSetÚTopDictIndexÚTopDictÚCharStringsÚGlobalSubrsIndexÚPrivateDictÚOTTOr   Ú
FontMatrixrÆ   zCFF )ÚcffLibr  r  r  r  r  r  r©   r¨   ÚsfntVersionÚmajorÚminorÚotFontÚ	fontNamesÚtopDictIndexÚGlobalSubrsr¸   r¹   ÚgetGlyphOrderÚcharsetÚPrivater   r  ÚprivateÚglobalSubrsrÝ   r   Úcff)r¬   rW   ÚfontInfoÚcharStringsDictÚprivateDictr  r  r  r  r  r  ÚfontSetr%  r$  ÚkeyÚvalueÚfdSelectÚfdArrayÚtopDictÚscaleÚcharStringsrñ   Ú
charStrings                          r®   ÚsetupCFFÚFontBuilder.setupCFF  s¨  € ÷	
÷ 	
ð —:—:Ðˆ~Ø &ˆ�	‰	ÔÙ“,ˆØˆŒØˆŒØŸ™ˆŒØ#˜HˆÔÙ+›~ˆÔá&Ó(ˆØ)ÔÙ“-ˆØ%×+Ñ+Ö-‰JˆCÜ�G %Ö(ñ .àˆØˆá“)ˆØŸ)™)×1Ñ1Ó3ˆŒØ!ˆŒØ%×1Ñ1ˆÔØ"Ÿ.™.Ö*‰JˆCÜ�G˜SÖ(ñ +à˜xÓ'Ø˜Ÿ	™	 &Ñ)×4Ñ4Ñ4ˆEØ"'¨¨A¨u°a¸Ð!;ˆGÔá!Ø�'—/‘/ ;¸À7ó
ˆð &5×%:Ñ%:Ö%<Ñ!ˆI�zØ!(ˆJÔØ%0ˆJÔ"Ø%/ˆK˜	Ó"ñ &=ð *ˆÔà×Ñ×#Ñ# GÔ,ä$ VÓ,ˆ�	‰	�&ÑØ '�	‰	�&ÑÕr±   c                 óä  • SSK JnJnJnJnJnJn	Jn
Jn  U R                  (       a   eSU R                  l        U" 5       nSUl        SUl        U R                  R                  nU" S US 5      Ul        U" 5       nXìl        Uc  0 /nS nU
" 5       nS Ul        UUl        U Ha  nU" 5       nUR%                  S5        U	" 5       nUR'                  5        H  u  nn[)        UUU5        M     UUl        UR-                  U5        Mc     U" 5       nUUl        UUl        SU R                  S   R2                  -  nUSSUSS/Ul        US   R*                  nU" S S UUUU5      nUR'                  5        H  u  nnUUl        UUl        UUU'   M     UUl        UR                  R-                  U5        [;        S5      U R                  S'   XÀR                  S   l        U(       a  U R?                  U5        g g )	Nr   )r  r  r  r  r  r  ÚFDArrayIndexÚFontDictr  r   r   TrÆ   ÚCFF2) r  r  r  r  r  r  r  r6  r7  r©   r¨   r  r  r  r!  r  r   ÚstringsÚsetCFF2r¸   r¹   r#  rÝ   Úcff2GetGlyphOrderÚFDArrayr   r  r$  r%  r   r&  ÚsetupCFF2Regions)r¬   r(  ÚfdArrayListÚregionsr  r  r  r  r  r  r6  r7  r*  r;  r%  r-  r.  r)  ÚfontDictr$  r+  r,  r/  r0  r1  rñ   r2  s                              r®   Ú	setupCFF2ÚFontBuilder.setupCFF24  sæ  € ÷		
÷ 		
ó 		
ð —:—:Ðˆ~Ø &ˆ�	‰	ÔÙ“,ˆØˆŒØˆŒà ŸI™I×3Ñ3ÐÙ+¨DÐ2CÀTÓJˆÔá&Ó(ˆØ)ÔàÑØ˜$ˆKØˆÙ“.ˆØˆŒØ)ˆÔÛ&ˆKÙ“zˆHØ×Ñ˜TÔ"Ù!“mˆGØ)×/Ñ/Ö1‘
��UÜ˜  eÖ,ñ 2à&ˆHÔØ�N‰N˜8Ö$ñ 'ñ “)ˆØ$5ˆÔ!Ø!ˆŒØ�D—I‘I˜fÑ%×0Ñ0Ñ0ˆØ# Q¨¨5°!°QÐ7ˆÔà˜!‘*×$Ñ$ˆÙ! $¨¨k¸7ÀHÈgÓVˆØ%4×%:Ñ%:Ö%<Ñ!ˆI�zØ!(ˆJÔØ%0ˆJÔ"Ø%/ˆK˜	Ó"ñ &=ð *ˆÔà×Ñ×#Ñ# GÔ,ä$ VÓ,ˆ�	‰	�&ÑØ '�	‰	�&ÑÔæØ×!Ñ! 'Õ*ð r±   c           	      ó   • SSK JnJnJn  SSKJn  SU R                  ;   d   S5       eSU R                  ;   d   S5       eU R                  S   R                   Vs/ s H  ofR                  PM     nnU" X5      nU" [        [        [        U5      5      5      S SS	9n	U" X‰/5      n
U" U
S
9nU R                  S   R                  R                  S   nX¼l        UR                   H  nX½R                   l        M     g s  snf )Nr   )ÚbuildVarRegionListÚbuildVarDataÚbuildVarStore)ÚVarStoreDataÚfvarzfvar must to be set up firstr8  zCFF2 must to be set up firstF)Úoptimize)Ú
otVarStorer   )ÚvarLib.builderrD  rE  rF  r  rG  r¨   ÚaxesÚaxisTagÚlistÚrangeÚlenr&  r  ÚVarStorer<  r#  Úvstore)r¬   r?  rD  rE  rF  rG  ÚaÚaxisTagsÚvarRegionListÚvarDataÚvarStorerR  r/  r@  s                 r®   r=  ÚFontBuilder.setupCFF2Regionsq  sâ   € ßSÑSÝ(à˜Ÿ™Ó"ÐBÐ$BÓBÐ"Ø˜Ÿ™Ó"ÐBÐ$BÓBÐ"Ø'+§y¡y°Ñ'8×'=Ò'=Ó>Ò'= !—I”IÑ'=ˆÐ>Ù*¨7Ó=ˆÙœt¤E¬#¨g«,Ó$7Ó8¸$ÈÑOˆÙ  °	Ó:ˆÙ¨Ñ2ˆØ—)‘)˜FÑ#×'Ñ'×4Ñ4°QÑ7ˆØ!ÔØŸœˆHØ&,×ÑÖ#ò (ùò ?s   ÁC;c                 óf  • U R                   (       d   eU(       ay  U R                  S   R                  S:X  a\  UR                  5        HH  u  pEUR                  S:”  d  M  [        S UR                   5       5      (       d  M:  [        SU< S35      e   [        S5      U R                  S'   [        S5      U R                  S'   XR                  S   l	        [        U R                  S5      (       a(  U R                  R                  U R                  S   l        U(       a  U R                  5         g	g	)
a]  Create the `glyf` table from a dict, that maps glyph names
to `fontTools.ttLib.tables._g_l_y_f.Glyph` objects, for example
as made by `fontTools.pens.ttGlyphPen.TTGlyphPen`.

If `calcGlyphBounds` is True, the bounds of all glyphs will be
calculated. Only pass False if your glyph objects already have
their bounding box values set.

If `validateGlyphFormat` is True, raise ValueError if any of the glyphs contains
cubic curves or is a variable composite but head.glyphDataFormat=0.
Set it to False to skip the check if you know in advance all the glyphs are
compatible with the specified glyphDataFormat.
rÆ   r   c              3   ó2   #   • U  H  o[         -  v •  M     g 7fr·   r   )rÖ   Úfs     r®   r×   Ú(FontBuilder.setupGlyf.<locals>.<genexpr>“  s   é € Ð1QÊÀA´i¶-Êùs   ‚zGlyph zt has cubic Bezier outlines, but glyphDataFormat=0; either convert to quadratics with cu2qu or set glyphDataFormat=1.Úlocar§   rÐ   N)r©   r¨   r   r¸   ÚnumberOfContoursÚanyr   rá   r   ÚglyphsÚhasattrrÐ   ÚcalcGlyphBounds)r¬   r`  rb  ÚvalidateGlyphFormatrö   Úgs         r®   Ú	setupGlyfÚFontBuilder.setupGlyf�  sô   € ð �z�zÐˆzæ 4§9¡9¨VÑ#4×#DÑ#DÈÓ#IØ!Ÿ<™<ž>‘�Ø×%Ñ%¨Õ)¬cÑ1QÈÏÊÓ1Q×.QÓ.QÜ$Ø  ¡ð )\ð \óð ñ *ô % VÓ,ˆ�	‰	�&ÑÜ$ VÓ,ˆ�	‰	�&ÑØ#)�	‰	�&ÑÔ Ü�4—9‘9˜l×+Ñ+Ø+/¯9©9×+?Ñ+?ˆD�I‰I�fÑÔ(ÞØ× Ñ Õ"ð r±   c                 ó0   • [        U R                  X5        g)a7  Adds an font variations table to the font.

Args:
    axes (list): See below.
    instances (list): See below.

``axes`` should be a list of axes, with each axis either supplied as
a py:class:`.designspaceLib.AxisDescriptor` object, or a tuple in the
format ```tupletag, minValue, defaultValue, maxValue, name``.
The ``name`` is either a string, or a dict, mapping language codes
to strings, to allow localized name table entries.

```instances`` should be a list of instances, with each instance either
supplied as a py:class:`.designspaceLib.InstanceDescriptor` object, or a
dict with keys ``location`` (mapping of axis tags to float values),
``stylename`` and (optionally) ``postscriptfontname``.
The ``stylename`` is either a string, or a dict, mapping language codes
to strings, to allow localized name table entries.
N)ÚaddFvarr¨   )r¬   rL  Ú	instancess      r®   Ú	setupFvarÚFontBuilder.setupFvar¡  s   € ô* 	�—	‘	˜4Õ+r±   c                 ó  • SSK Jn  SU R                  ;  a  [        S5      eU R                  S   R                   Vs/ s H  oDR
                  PM     nn[        [        U5      5      nU" U R                  XU5        gs  snf )z€Adds an axis variations table to the font.

Args:
    axes (list): A list of py:class:`.designspaceLib.AxisDescriptor` objects.
r   )Ú	_add_avarrH  z*'fvar' table is missing; can't add 'avar'.N)ÚvarLibrm  r¨   ÚKeyErrorrL  rM  r   Ú	enumerate)r¬   rL  Úmappingsrm  ÚaxisrT  s         r®   Ú	setupAvarÚFontBuilder.setupAvar¸  sj   € õ 	&à˜Ÿ™Ó"ÜÐGÓHÐHà-1¯Y©Y°vÑ->×-CÒ-CÓDÒ-C T—L”LÑ-CˆÐDÜœ9 T›?Ó+ˆÙ�$—)‘)˜T¨XÕ6ùò Es   ½A=c                 ó^   • [        S5      =o R                  S'   SUl        SUl        Xl        g )NÚgvarr   r   ©r   r¨   rU   ÚreservedÚ
variations©r¬   ry  rv  s      r®   Ú	setupGvarÚFontBuilder.setupGvarÇ  ó+   € Ü#+¨FÓ#3Ð3ˆ�y‰y˜Ñ ØˆŒØˆŒØ$�r±   c                 ó^   • [        S5      =o R                  S'   SUl        SUl        Xl        g )NÚGVARr   r   rw  rz  s      r®   Ú	setupGVARÚFontBuilder.setupGVARÍ  r}  r±   c                 ó†   • U R                   S   nUR                  R                  5        H  nUR                  U5        M     g)zvCalculate the bounding boxes of all glyphs in the `glyf` table.
This is usually not called explicitly by client code.
r§   N)r¨   r`  r¼   ÚrecalcBounds)r¬   Ú
glyphTableÚglyphs      r®   rb  ÚFontBuilder.calcGlyphBoundsÓ  s9   € ð —Y‘Y˜vÑ&ˆ
Ø×&Ñ&×-Ñ-Ö/ˆEØ×Ñ˜zÖ*ò 0r±   c                 ó(   • U R                  SU5        g)z•Create a new `hmtx` table, for horizontal metrics.

The `metrics` argument must be a dict, mapping glyph names to
`(width, leftSidebearing)` tuples.
r
  N©ÚsetupMetrics©r¬   Úmetricss     r®   ÚsetupHorizontalMetricsÚ"FontBuilder.setupHorizontalMetricsÛ  ó   € ð 	×Ñ˜& 'Õ*r±   c                 ó(   • U R                  SU5        g)z•Create a new `vmtx` table, for horizontal metrics.

The `metrics` argument must be a dict, mapping glyph names to
`(height, topSidebearing)` tuples.
ÚvmtxNrˆ  rŠ  s     r®   ÚsetupVerticalMetricsÚ FontBuilder.setupVerticalMetricsã  rŽ  r±   c                 óÈ   • US;   d   e[        U5      =o0R                  U'   0 nU H3  nX%   u  pg[        [        U5      5      [        [        U5      5      4XE'   M5     XCl        g)z<See `setupHorizontalMetrics()` and `setupVerticalMetrics()`.)r
  r�  N)r   r¨   rÿ   Úroundr‹  )r¬   rº   r‹  ÚmtxTableÚroundedMetricsÚgnÚwÚlsbs           r®   r‰  ÚFontBuilder.setupMetricsë  sd   € àÐ+Ó+Ð+Ð+Ü)1°(Ó);Ð;ˆ—9‘9˜XÑ&ØˆÛˆBØ‘[‰FˆAÜ!$¤U¨1£X£´´E¸#³J³Ð!?ˆNÓñ ð *Õr±   c                 ó2   • U R                  S[        U5        g)zkCreate a new `hhea` table initialize it with default values,
which can be overridden by keyword arguments.
ÚhheaN)rÀ   Ú_hheaDefaultsrÈ   s     r®   ÚsetupHorizontalHeaderÚ!FontBuilder.setupHorizontalHeaderõ  rÊ   r±   c                 ó2   • U R                  S[        U5        g)zkCreate a new `vhea` table initialize it with default values,
which can be overridden by keyword arguments.
ÚvheaN)rÀ   Ú_vheaDefaultsrÈ   s     r®   ÚsetupVerticalHeaderÚFontBuilder.setupVerticalHeaderû  rÊ   r±   c           	      ó  ^• Uc;  0 mU H!  nX   nUT;  a  STU'   M  TU==   S-  ss'   M#     [        TU4S jSS9S   nU R                  S0 [        0 US95        U R                  S   nSUl        SUl        U H	  nX   XS'   M     g)	a1  Create a new `VORG` table. The `verticalOrigins` argument must be
a dict, mapping glyph names to vertical origin values.

The `defaultVerticalOrigin` argument should be the most common vertical
origin value. If omitted, this value will be derived from the actual
values in the `verticalOrigins` argument.
Nr   c                 ó   >• TU    $ r·   rÕ   )ÚvorgÚbags    €r®   Ú<lambda>Ú2FontBuilder.setupVerticalOrigins.<locals>.<lambda>  s	   ø€  c¨$¢ir±   T)r+  Úreverser   ÚVORG)ÚVOriginRecordsÚdefaultVertOriginY)ÚsortedrÀ   rÛ   r¨   ÚmajorVersionÚminorVersion)r¬   ÚverticalOriginsÚdefaultVerticalOriginr—  r§  Ú	vorgTabler¨  s         @r®   ÚsetupVerticalOriginsÚ FontBuilder.setupVerticalOrigins  s±   ø€ ð !Ñ(àˆCÛ%�Ø&Ñ*�Ø˜s“?Ø !�C˜“Ià˜“I ‘N•Iñ &ô %+ØÔ/¸ñ%àñ%Ð!ð 	×!Ñ!ØØÜ Ð7LÑMô	
ð
 —I‘I˜fÑ%ˆ	Ø!"ˆ	ÔØ!"ˆ	ÔÛ!ˆBØ+Ñ/ˆI‹Mò "r±   c                 óÈ   • SU R                   ;   nU R                  S[        U5      nU R                  (       d  U(       a  U(       a  SUl        / Ul        0 Ul        gSUl        g)zoCreate a new `post` table and initialize it with default values,
which can be overridden by keyword arguments.
r8  Úpostg       @r/   N)r¨   rÀ   Ú_postDefaultsr©   r0   Ú
extraNamesÚmapping)r¬   ÚkeepGlyphNamesr¼   ÚisCFF2Ú	postTables        r®   Ú	setupPostÚFontBuilder.setupPost   sQ   € ð ˜4Ÿ9™9Ñ$ˆØ×-Ñ-¨f´mÀVÓLˆ	Ø�J�Jž&¦nØ#&ˆIÔ Ø#%ˆIÔ Ø "ˆIÕà#&ˆIÕ r±   c                 óf   • U R                   (       a  [        nO[        nU R                  SU0 5        g)zuCreate a new `maxp` table. This is called implicitly by FontBuilder
itself and is usually not called by client code.
ÚmaxpN)r©   Ú_maxpDefaultsTTFÚ_maxpDefaultsOTFrÀ   )r¬   r»   s     r®   r«   ÚFontBuilder.setupMaxp-  s'   € ð �:�:Ü'‰Hä'ˆHØ×!Ñ! &¨(°BÕ7r±   c                 óB   • [        SSS/ S9nU R                  S0 U5        g)ztThis adds an empty DSIG table to the font to make some MS applications
happy. This does not properly sign the font.
r   r   )Ú	ulVersionÚusFlagÚ	usNumSigsÚsignatureRecordsÚDSIGN)rÛ   rÀ   rÈ   s     r®   ÚsetupDummyDSIGÚFontBuilder.setupDummyDSIG7  s.   € ô ØØØØñ	
ˆð 	×!Ñ! &¨"¨fÕ5r±   c                 ó4   • SSK Jn  U" U R                  XX4S9  g)aÒ  Add OpenType features to the font from a string containing
Feature File syntax.

The `filename` argument is used in error messages and to determine
where to look for "include" files.

The optional `tables` argument can be a list of OTL tables tags to
build, allowing the caller to only build selected OTL tables. See
`fontTools.feaLib` for details.

The optional `debug` argument controls whether to add source debugging
information to the font in the `Debg` table.
r   )ÚaddOpenTypeFeaturesFromString)Úfilenamerä   ÚdebugN)ÚfeaLib.builderrÏ  r¨   )r¬   ÚfeaturesrÐ  rä   rÑ  rÏ  s         r®   ÚaddOpenTypeFeaturesÚFontBuilder.addOpenTypeFeaturesC  s   € õ 	Bá%Ø�I‰I�x¸6ó	
r±   c                 óz   • SSK Jn  SU R                  ;  a  [        S5      eUR	                  U R                  XS9  g)zlAdd conditional substitutions to a Variable Font.

See `fontTools.varLib.featureVars.addFeatureVariations`.
r   )ÚfeatureVarsrH  z5'fvar' table is missing; can't add FeatureVariations.)Ú
featureTagN)rn  r×  r¨   ro  ÚaddFeatureVariations)r¬   ÚconditionalSubstitutionsrØ  r×  s       r®   rÙ  Ú FontBuilder.addFeatureVariationsW  s<   € õ
 	(à˜Ÿ™Ó"ÜÐRÓSÐSà×(Ñ(Ø�I‰IÐ/ð 	)ò 	
r±   c           
      óv   • SSK Jn  U R                  R                  5       nU" UUUUUUUS9U R                  S'   g)zaBuild new COLR table using color layers dictionary.

Cf. `fontTools.colorLib.builder.buildCOLR`.
r   )Ú	buildCOLR)rU   ÚglyphMaprW  ÚvarIndexMapÚ	clipBoxesÚallowLayerReuseÚCOLRN)ÚfontTools.colorLib.builderrÝ  r¨   ÚgetReverseGlyphMap)	r¬   ÚcolorLayersrU   rW  rß  rà  rá  rÝ  rÞ  s	            r®   Ú	setupCOLRÚFontBuilder.setupCOLRe  sA   € õ 	9à—9‘9×/Ñ/Ó1ˆÙ%ØØØØØ#ØØ+ñ
ˆ�	‰	�&Òr±   c           	      óp   • SSK Jn  U" UUUUU R                  R                  S5      S9U R                  S'   g)z´Build new CPAL table using list of palettes.

Optionally build CPAL v1 table using paletteTypes, paletteLabels and
paletteEntryLabels.

Cf. `fontTools.colorLib.builder.buildCPAL`.
r   )Ú	buildCPALrö   )ÚpaletteTypesÚpaletteLabelsÚpaletteEntryLabelsr  ÚCPALN)rã  ré  r¨   râ   )r¬   Úpalettesrê  rë  rì  ré  s         r®   Ú	setupCPALÚFontBuilder.setupCPAL  s6   € õ 	9á%ØØ%Ø'Ø1Ø—i‘i—m‘m FÓ+ñ
ˆ�	‰	�&Òr±   c                 ó´   • SSK Jn  SU R                  ;   d   S5       eU" U R                  UUU[        S U R                  S   R                   5       5      S9  g)zjBuild a new 'STAT' table.

See `fontTools.otlLib.builder.buildStatTable` for details about
the arguments.
r   )ÚbuildStatTablerö   zname must to be set up firstc              3   ó>   #   • U  H  oR                   S :H  v •  M     g7f©r   N©Ú
platformID©rÖ   Únrs     r®   r×   Ú(FontBuilder.setupStat.<locals>.<genexpr>¦  s   é € ÐNÒ6M°Ÿ™¨!Ö+Ò6Mùó   ‚)ÚmacNamesN)ÚotlLib.builderrò  r¨   r_  rý   )r¬   rL  Ú	locationsÚelidedFallbackNamerò  s        r®   Ú	setupStatÚFontBuilder.setupStat—  sT   € õ 	3à˜Ÿ™Ó"ÐBÐ$BÓBÐ"áØ�I‰IØØØÜÑN°d·i±iÀÑ6G×6MÒ6MÓNÓNó	
r±   )r¨   r©   )NNTr   )NF)TT)NNr·   )T)NNF)Úrvrn)NNNNT)NNN)Nr   )&Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r¯   r³   rÀ   rÃ   rª   rÌ   rÑ   ró   r  r  r3  rA  r=  re  rj  rs  r{  r€  rb  rŒ  r‘  r‰  rž  r£  rµ  r¿  r«   rÌ  rÔ  rÙ  ræ  rï  rÿ  Ú__static_attributes__rÕ   r±   r®   r   r   8  sÌ   † ô%(òNòò!ò
Aò4ò,ô4-ôl1òf=ò*1(ôf;+òz-ô #ò@,ô.7ò%ò%ò+ò+ò+ò*òAòAô0ô>'ò8ò
6ô
ô(
ð" ØØØØô
ð: ØØô
÷0
r±   c                 óV   • [         U   " U5      nXl        X$l        X4l        SUl        U$ )Nr   )r   rÙ   rö  Ú	platEncIDÚlanguage)rå   rì   rö  r  ÚsubTables        r®   rÜ   rÜ   ª  s/   € Ü˜FÒ# FÓ+€HØ„MØ$ÔØ"ÔØ€HÔØ€Or±   c                 ó`  • SSK JnJn  U(       d   e[        S5      nU S   n[	        S [        USS5       5       5      nSnU(       a  S	U-   nU Hõ  n	U" 5       n
[        U	[        5      (       a  U	u  U
l        U
l	        U
l
        U
l        nOkU	R                  U	R                  U	R                  U	R                  U	R                   4u  U
l        U
l	        U
l
        U
l        nU	R"                  (       a  SU
l        [        U[&        5      (       a	  [)        US
9nUR+                  X°US9U
l        UR.                  R1                  U
5        M÷     U HÝ  n[        U[(        5      (       a  US   nUS   nUR3                  S5      nO7UR4                  nUR6                  =(       d    UR8                  nUR:                  n[        U[&        5      (       a	  [)        US
9nU" 5       nUR+                  X°US9Ul        Ub  UR?                  XèS9Ul         Xßl!        URD                  R1                  U5        Mß     XPS'   g )Nr   )ÚAxisÚNamedInstancerH  rö   c              3   ó>   #   • U  H  oR                   S :H  v •  M     g7frô  rõ  r÷  s     r®   r×   ÚaddFvar.<locals>.<genexpr>½  s   é € ÐPÒ0O¨"—=‘= AÖ%Ò0Oùrú  rý   rÕ   ))r   r   i	  ))r   r   r   r÷   )rù   rü   ÚlocationÚ	stylenameÚpostscriptfontname)Ú	platforms)#ÚttLib.tables._f_v_a_rr  r  r   r_  Úgetattrrþ   ÚtuplerM  ÚminValueÚdefaultValueÚmaxValueÚtagÚminimumÚdefaultÚmaximumrö   Úhiddenr   r  rÛ   r  Ú
axisNameIDrL  rÝ   râ   r  ÚlocalisedStyleNamerQ   ÚpostScriptFontNameÚsubfamilyNameIDÚaddNameÚpostscriptNameIDÚcoordinatesri  )r¨   rL  ri  r  r  rH  r  rû  r  Úaxis_defrr  rö   Úinstancer%  ÚpsnameÚinsts                   r®   rh  rh  ³  s  € ß:æ€Kˆ4ä�FÓ€DØ�V‘€Iô ÑP´¸	À7ÈBÔ0OÓPÓP€Hð !€IÞØ  9Ñ,ˆ	ãˆÙ‹vˆä�h¤×&Ñ&ð ñØ”Ø”ØÔ!Ø”Ùð —‘Ø× Ñ Ø× Ñ Ø× Ñ Ø—‘ðUÑQˆTŒ\˜4œ=¨$Ô*;¸T¼]ÈDð ��Ø#�”
ä�dœC× Ñ Ü˜4‘=ˆDà#×7Ñ7¸ÈxÐ7ÐXˆŒØ�	‰	×Ñ˜Öñ5 ó8 ˆÜ�h¤×%Ñ%Ø" :Ñ.ˆKØ˜KÑ(ˆDØ—\‘\Ð"6Ó7‰Fà"×+Ñ+ˆKØ×.Ñ.×D°(×2DÑ2DˆDØ×0Ñ0ˆFä�dœC× Ñ Ü˜4‘=ˆDá‹ˆØ(×<Ñ<Ø 8ð  =ð  
ˆÔð ÑØ$-×$5Ñ$5°fÐ$5Ð$RˆDÔ!Ø&ÔØ�‰×Ñ˜dÖ#ñ) ð, ˆ‚Lr±   rÕ   )Ú__all__ÚttLibr   r   ÚttLib.tables._c_m_a_pr   ÚttLib.tables._g_l_y_fr   ÚttLib.tables.O_S_2f_2r	   Úmisc.timeToolsr
   rß   Úcollectionsr   rÛ   rÇ   rÃ  rÄ  r¹  r�  r¢  r   Ú_panoseDefaultsr  Úobjectr   rÜ   rh  rÕ   r±   r®   Ú<module>r3     sw  ðØˆ/€ð÷B $Ý /Ý ,Ý )Ý (Û Ý #ñ ò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ 
ðñ 
ðñ 
ðñ 
ðñ ðñ ðñ ðñ  ð!ñ" ð#€ñ( ØØØØØØØØØØØØØØØñÐ ñ" ØØñÐ ñ
 ØØØØØØØØØñ
€ñ ò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ  ð!ñ" ð#€ñ( ò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ  ð!ñ" ð#€ñ( ò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ" ð#ñ$ ð%ñ& ð'ñ( ð)ñ* !ð+ñ, ð-ñ. ð/ñ0 ð1ñ2 ð3ñ4 $&ð5€ñ@ “(€áò (Ùð(áð(ñ ð(ñ ð	(ñ
 ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ ð(ñ  ð!(ñ" ð#(ñ$ ð%(ñ& ð'(ñ( ð)(ñ* ð+(ñ, ð-(ñ. ð/(ñ0 ð1(ñ2 ð3(ñ4 ð5(ñ6 ð7(ñ8 ð9(ñ: ð;(ñ< ð=(ñ> ð?(ñ@ ðA(ñB ðC(ñD ðE(ñF ðG(ñH ðI(ñJ ðK(ñL ðM(ñN ðO(€ôVo	
�&ô o	
òdóCr±   