§
    ¢”j¤  ã                   ój   — d dl mZ d dlmZmZ d dlZdZ ej        e¦  «        Z G d„ de	¦  «        Z
dS )é    )Ússtruct)ÚreadHexÚsafeEvalNa  
	>
	originOffsetX: h	# The x-value of the point in the glyph relative to its
						# lower-left corner which corresponds to the origin of
						# the glyph on the screen, that is the point on the
						# baseline at the left edge of the glyph.
	originOffsetY: h	# The y-value of the point in the glyph relative to its
						# lower-left corner which corresponds to the origin of
						# the glyph on the screen, that is the point on the
						# baseline at the left edge of the glyph.
	graphicType:  4s	# e.g. "png "
c                   óD   — e Zd Z	 	 	 	 	 	 	 	 d	d„Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )
ÚGlyphNr   c	                 óÆ  — || _         || _        || _        || _        || _        || _        || _        || _        | j        �Ÿ| j        d         dk    r| j        d d…         | _        t          | j        ¦  «        dk    rddl	m
}	 |	                     d¦  «        ‚t          | j        ¦  «        dk     r1| xj        dd dt          | j        ¦  «        z
  …         z  c_        d S d S d S )Néÿÿÿÿú é   r   ©ÚttLibz7Glyph.graphicType must not be longer than 4 characters.z    )ÚgidÚ	glyphNameÚreferenceGlyphNameÚoriginOffsetXÚoriginOffsetYÚrawdataÚgraphicTypeÚ	imageDataÚlenÚ	fontToolsr   Ú
TTLibError)
Úselfr   r   r   r   r   r   r   r   r   s
             úo/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/fontTools/ttLib/tables/sbixGlyph.pyÚ__init__zGlyph.__init__   s  € ð ˆŒØ"ˆŒØ"4ˆÔØ*ˆÔØ*ˆÔØˆŒØ&ˆÔØ"ˆŒð ÔÐ'ØÔ Ô# tÒ+Ð+Ø#'Ô#3°C°R°CÔ#8�Ô Ý�4Ô#Ñ$Ô$ qÒ(Ð(Ø+Ð+Ð+Ð+Ð+Ð+à×&Ò&ØMñô ð õ �TÔ%Ñ&Ô&¨Ò*Ð*àÐ Ô  FÐ+H¨aµ#°dÔ6FÑ2GÔ2GÑ.GÐ+HÔ$IÑIÐ Ô Ð Ð ð (Ð'ð +Ð*ó    c                 ó.   — | j         dk    p
| j         dk    S )zHReturns True if this glyph is a reference to another glyph's image data.ÚdupeÚflip)r   )r   s    r   Úis_reference_typezGlyph.is_reference_type9   s   € àÔ 6Ò)ÐG¨TÔ-=ÀÒ-GÐGr   c                 óz  — |                      | j        ¦  «        | _        | j        €ddlm} |                     d¦  «        ‚t          | j        ¦  «        dk    rÝt          | j        ¦  «        t          k     rddlm} |                     d¦  «        ‚t          j
        t          | j        d t          …         | ¦  «         |                      ¦   «         rDt          j
        d| j        t          d …         ¦  «        \  }|                      |¦  «        | _        n | j        t          d …         | _        d | _        | `| `d S )Nr   r   zNo table data to decompilezGlyph header too short.ú>H)ÚgetGlyphNamer   r   r   r   r   r   r   ÚsbixGlyphHeaderFormatSizer   ÚunpackÚsbixGlyphHeaderFormatr    Ústructr   r   )r   ÚttFontr   r   s       r   Ú	decompilezGlyph.decompile=   sA  € Ø×,Ò,¨T¬XÑ6Ô6ˆŒØŒ<ÐØ'Ð'Ð'Ð'Ð'Ð'à×"Ò"Ð#?Ñ@Ô@Ð@ÝˆtŒ|ÑÔ˜qÒ Ð Ý�4”<Ñ Ô Õ#<Ò<Ð<Ø+Ð+Ð+Ð+Ð+Ð+ð ×&Ò&Ð'@ÑAÔAÐAåŒNÝ% t¤|Ð4NÕ5NÐ4NÔ'OÐQUñô ð ð ×%Ò%Ñ'Ô'ð /åœ t¨T¬\Õ:SÐ:TÐ:TÔ-UÑVÔV‘�Ø*0×*=Ò*=¸cÑ*BÔ*B�Ô'Ð'à!%¤Õ.GÐ.HÐ.HÔ!I�”Ø*.�Ô'àˆLØˆHˆHˆHr   c                 ó´  — | j         €ddlm} |                     d¦  «        ‚t	          j        d|                     | j         ¦  «        ¦  «        | _        | j        €d}nrt          j        t          | ¦  «        }|                      ¦   «         r1|t	          j        d|                     | j        ¦  «        ¦  «        z  }n| j        €J ‚|| j        z  }|| _        d S )Nr   r   z&Can't compile Glyph without glyph namer"   r   )r   r   r   r   r'   ÚpackÚ
getGlyphIDr   r   r   r&   r    r   r   r   )r   r(   r   r   s       r   ÚcompilezGlyph.compileY   sÚ   € ØŒ>Ð!Ø'Ð'Ð'Ð'Ð'Ð'à×"Ò"Ð#KÑLÔLÐLõ ”;˜t V×%6Ò%6°t´~Ñ%FÔ%FÑGÔGˆŒØÔÐ#ØˆGˆGå”lÕ#8¸$Ñ?Ô?ˆGØ×%Ò%Ñ'Ô'ð *Ø�6œ; t¨V×->Ò->¸tÔ?VÑ-WÔ-WÑXÔXÑX��à”~Ð1Ð1Ð1Ø˜4œ>Ñ)�ØˆŒˆˆr   c                 óˆ  — | j         €2|                     d| j        ¬¦  «         |                     ¦   «          d S |                     d| j         | j        | j        | j        ¬¦  «         |                     ¦   «          |                      ¦   «         r|                     d| j        ¬¦  «         nX|                     d¦  «         |                     ¦   «          | 	                    | j
        ¦  «         |                     d¦  «         |                     ¦   «          |                     d¦  «         |                     ¦   «          d S )NÚglyph)Úname)r   r0   r   r   Úref)Ú	glyphnameÚhexdata)r   Ú	simpletagr   ÚnewlineÚbegintagr   r   r    r   Údumphexr   Úendtag)r   Ú	xmlWriterr(   s      r   ÚtoXMLzGlyph.toXMLl   sK  € ØÔÐ#ð ×Ò ¨d¬nÐÑ=Ô=Ð=Ø×ÒÑÔÐØˆFØ×ÒØØÔ(Ø”ØÔ,ØÔ,ð 	ñ 	
ô 	
ð 	
ð 	×ÒÑÔÐØ×!Ò!Ñ#Ô#ð 	(à×Ò °Ô1HÐÑIÔIÐIÐIà×Ò˜yÑ)Ô)Ð)Ø×ÒÑÔÐØ×Ò˜dœnÑ-Ô-Ð-Ø×Ò˜YÑ'Ô'Ð'Ø×ÒÑÔÐØ×Ò˜Ñ!Ô!Ð!Ø×ÒÑÔÐÐÐr   c                 ó$  — |dk    rQt          d|d         z   dz   ¦  «        }t          j        d|                     |¦  «        ¦  «        | _        || _        d S |dk    rt          |¦  «        | _        d S ddlm} | 	                    d|z  ¦  «        ‚)	Nr1   z'''r2   r"   r3   r   r   zcan't handle '%s' element)
r   r'   r+   r,   r   r   r   r   r   r   )r   r0   ÚattrsÚcontentr(   r2   r   s          r   ÚfromXMLzGlyph.fromXMLˆ   s¢   € Ø�5Š=ˆ=õ ! ¨¨{Ô);Ñ!;¸eÑ!CÑDÔDˆIÝ#œ[¨¨v×/@Ò/@ÀÑ/KÔ/KÑLÔLˆDŒNØ&/ˆDÔ#Ð#Ð#Ø�YÒÐÝ$ WÑ-Ô-ˆDŒNˆNˆNà'Ð'Ð'Ð'Ð'Ð'à×"Ò"Ð#>ÀÑ#EÑFÔFÐFr   )NNr   r   NNNr   )	Ú__name__Ú
__module__Ú__qualname__r   r    r)   r-   r:   r>   © r   r   r   r      sš   € € € € € ð ØØØØØØØð Jð  Jð  Jð  JðDHð Hð Hðð ð ð8ð ð ð&ð ð ð8Gð Gð Gð Gð Gr   r   )ÚfontTools.miscr   ÚfontTools.misc.textToolsr   r   r'   r&   Úcalcsizer$   Úobjectr   rB   r   r   ú<module>rG      sž   ðØ "Ð "Ð "Ð "Ð "Ð "Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ø €€€ðÐ ð -˜GÔ,Ð-BÑCÔCÐ ðGð Gð Gð Gð GˆFñ Gô Gð Gð Gð Gr   