Ë
    £eh¤  ã                   óf   — 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
y)é    )Ú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                   óB   — e Zd Z	 	 	 	 	 	 	 	 dd„Zd„ Zd„ Zd„ Zd„ Zd„ Zy)	ÚGlyphNc	                 óÆ  — || _         || _        || _        || _        || _        || _        || _        || _        | j                  ��| j                  d   dk(  r| j                  d d | _        t        | j                  «      dkD  rddl	m
}	 |	j                  d«      ‚t        | j                  «      dk  r/| xj                  dd dt        | j                  «      z
   z  c_        y y y )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
             ú^/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/fontTools/ttLib/tables/sbixGlyph.pyÚ__init__zGlyph.__init__   sê   € ð ˆŒØ"ˆŒØ"4ˆÔØ*ˆÔØ*ˆÔØˆŒØ&ˆÔØ"ˆŒð ×ÑÐ'Ø×Ñ Ñ# tÒ+Ø#'×#3Ñ#3°C°RÐ#8�Ô Ü�4×#Ñ#Ó$ qÒ(Ý+à×&Ñ&ØMóð ô �T×%Ñ%Ó&¨Ò*à× Ò  FÐ+H¨a´#°d×6FÑ6FÓ2GÑ.GÐ$IÑIÖ ð +ð (ó    c                 óB   — | j                   dk(  xs | 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                 ó^  — |j                  | j                  «      | _        | j                  €ddlm} |j                  d«      ‚t        | j                  «      dkD  rÎt        | j                  «      t        k  rddlm} |j                  d«      ‚t        j                  t        | j                  d t         | «       | j                  «       r@t        j                  d| j                  t        d  «      \  }|j                  |«      | _        n| j                  t        d  | _        d | _        | `| `y )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=   sø   € Ø×,Ñ,¨T¯X©XÓ6ˆŒØ�<‰<ÐÝ'à×"Ñ"Ð#?Ó@Ð@Üˆt�|‰|Ó˜qÒ Ü�4—<‘<Ó Ô#<Ò<Ý+ð ×&Ñ&Ð'@ÓAÐAä�N‰NÜ% t§|¡|Ð4NÔ5NÐ'OÐQUôð ×%Ñ%Ô'äŸ™ t¨T¯\©\Ô:SÐ:TÐ-UÓV‘�Ø*0×*=Ñ*=¸cÓ*B�Õ'à!%§¡Ô.GÐ.HÐ!I�”Ø*.�Ô'àˆLØ‰Hr   c                 óî  — | j                   €ddlm} |j                  d«      ‚t	        j
                  d|j                  | j                   «      «      | _        | j                  €
d}|| _        y t        j
                  t        | «      }| j                  «       r:|t	        j
                  d|j                  | j                  «      «      z  }|| _        y | j                  €J ‚|| j                  z  }|| _        y )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ô —;‘;˜t V×%6Ñ%6°t·~±~Ó%FÓGˆŒØ×ÑÐ#ØˆGð ˆ�ô —l‘lÔ#8¸$Ó?ˆGØ×%Ñ%Ô'Øœ6Ÿ;™; t¨V×->Ñ->¸t×?VÑ?VÓ-WÓXÑX�ð ˆ�ð —~‘~Ð1Ð1Ð1Ø˜4Ÿ>™>Ñ)�Øˆ�r   c                 ól  — | j                   €.|j                  d| j                  ¬«       |j                  «        y |j	                  d| j                   | j                  | j
                  | j                  ¬«       |j                  «        | j                  «       r|j                  d| j                  ¬«       nM|j	                  d«       |j                  «        |j                  | j                  «       |j                  d«       |j                  «        |j                  d«       |j                  «        y )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   s  € Ø×ÑÐ#ð ×Ñ ¨d¯n©nÐÔ=Ø×ÑÔØØ×ÑØØ×(Ñ(Ø—‘Ø×,Ñ,Ø×,Ñ,ð 	ô 	
ð 	×ÑÔØ×!Ñ!Ô#à×Ñ °×1HÑ1HÐÕIà×Ñ˜yÔ)Ø×ÑÔØ×Ñ˜dŸn™nÔ-Ø×Ñ˜YÔ'Ø×ÑÔØ×Ñ˜Ô!Ø×ÑÕr   c                 óø   — |dk(  rFt        d|d   z   dz   «      }t        j                  d|j                  |«      «      | _        || _        y |dk(  rt        |«      | _        y ddlm} |j                  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ˆ   sw   € Ø�5Š=ô ! ¨¨{Ñ);Ñ!;¸eÑ!CÓDˆIÜ#Ÿ[™[¨¨v×/@Ñ/@ÀÓ/KÓLˆDŒNØ&/ˆDÕ#Ø�YÒÜ$ WÓ-ˆD�Nå'à×"Ñ"Ð#>ÀÑ#EÓFÐFr   )NNr   r   NNNr   )	Ú__name__Ú
__module__Ú__qualname__r   r    r)   r-   r:   r>   © r   r   r   r      s>   „ ð ØØØØØØØó JòDHòò8ò&ó8Gr   r   )ÚfontTools.miscr   ÚfontTools.misc.textToolsr   r   r'   r&   Úcalcsizer$   Úobjectr   rB   r   r   ú<module>rG      s<   ðÝ "ß 6Û ðÐ ð -˜G×,Ñ,Ð-BÓCÐ ôGˆFõ Gr   