Ë
    £eh{  ã                   óv   — d dl mZ d dlmZmZ d dlmZ d dlZd dlZ ej                  e
«      Z G d„ de«      Zy)é    )ÚTTFont)ÚreadTTCHeaderÚwriteTTCHeader)ÚBytesIONc                   óX   — e Zd ZdZdd„Zd„ Zd„ Zd„ Zdd„Zdd„Z	d	„ Z
d
„ Zd„ Zd„ Zd„ Zy)ÚTTCollectionaç  Object representing a TrueType Collection / OpenType Collection.
    The main API is self.fonts being a list of TTFont instances.

    If shareTables is True, then different fonts in the collection
    might point to the same table object if the data for the table was
    the same in the font file.  Note, however, that this might result
    in suprises and incorrect behavior if the different fonts involved
    have different GlyphOrder.  Use only if you know what you are doing.
    Nc                 óJ  — g x}| _         |€y d|vsJ |«       ‚d}t        |d«      st        |d«      }d}|ri nd }t        |«      }t	        |j
                  «      D ]"  }t        |f||dœ|¤Ž}	|j                  |	«       Œ$ |j                  d«      s|r|j                  «        y y y )NÚ
fontNumberFÚreadÚrbT)r
   Ú_tableCacheÚlazy)
ÚfontsÚhasattrÚopenr   ÚrangeÚnumFontsr   ÚappendÚgetÚclose)
ÚselfÚfileÚshareTablesÚkwargsr   ÚcloseStreamÚ
tableCacheÚheaderÚiÚfonts
             úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/fontTools/ttLib/ttCollection.pyÚ__init__zTTCollection.__init__   s·   € ØÐˆ�”
Øˆ<Øà 6Ñ)Ð1¨6Ó1Ð)àˆÜ�t˜VÔ$Ü˜˜dÓ#ˆDØˆKá&‘R¨Dˆ
ä˜tÓ$ˆÜ�v—‘Ó'ò 	ˆAÜ˜$ÐO¨1¸*ÑOÈÑOˆDØ�L‰L˜Õð	ð �z‰z˜&Ô!¡kØ�J‰J�Lð '2Ð!ó    c                 ó   — | S ©N© ©r   s    r    Ú	__enter__zTTCollection.__enter__0   s   € Øˆr"   c                 ó$   — | j                  «        y r$   )r   )r   ÚtypeÚvalueÚ	tracebacks       r    Ú__exit__zTTCollection.__exit__3   s   € Ø�
‰
�r"   c                 óF   — | j                   D ]  }|j                  «        Œ y r$   )r   r   )r   r   s     r    r   zTTCollection.close6   s   € Ø—J‘Jò 	ˆDØ�J‰J�Lñ	r"   c                 óD  — t        |d«      sd}t        |d«      }n|}t        «       }|ri nd}t        |t	        | j
                  «      «      }g }| j
                  D ]F  }|j                  |j                  «       «       |j                  ||¬«       |j                  dd«       ŒH |j                  |«       |j                  t        j                  dt	        | j
                  «      z  g|¢­Ž «       |r|j                  |j                  «       «       |j                  «        y)z•Save the font to disk. Similarly to the constructor,
        the 'file' argument can be either a pathname or a writable
        file object.
        ÚwriteNÚwb)r   r   é   z>%dL)r   r   r   r   Úlenr   r   ÚtellÚ_saveÚseekr/   ÚstructÚpackÚgetvaluer   )r   r   r   Úfinalr   Úoffsets_offsetÚoffsetsr   s           r    ÚsavezTTCollection.save:   sä   € ô
 �t˜WÔ%ØˆEÜ˜˜dÓ#‰Dð ˆEÜ“9ˆDá&‘R¨Dˆ
ä'¨¬c°$·*±*«oÓ>ˆØˆØ—J‘Jò 	ˆDØ�N‰N˜4Ÿ9™9›;Ô'Ø�J‰J�t¨
ˆJÔ3Ø�I‰I�a˜�Oð	ð
 	�	‰	�.Ô!Ø�
‰
”6—;‘;˜v¬¨D¯J©J«Ñ7ÐB¸'ÒBÔCáØ�K‰K˜Ÿ™›Ô(Ø�
‰
�r"   c                 óä  — ddl m} |j                  ||¬«      }|r=ddlm} dj                  |j                  d«      d d «      }|j                  d|¬«       n|j                  d«       |j                  «        |j                  «        | j                  D ]'  } |j                  |fd	d
i|¤Ž |j                  «        Œ) |j                  d«       |j                  «        |j                  «        y )Nr   )Ú	xmlWriter)Ú
newlinestr)Úversionú.r1   ÚttCollection)ÚttLibVersionÚwriteVersionF)ÚfontTools.miscr>   Ú	XMLWriterÚ	fontToolsr@   ÚjoinÚsplitÚbegintagÚnewliner   Ú_saveXMLÚendtagr   )	r   Ú
fileOrPathr?   rD   r   r>   Úwriterr@   r   s	            r    ÚsaveXMLzTTCollection.saveXMLX   sÄ   € Ý,à×$Ñ$ Z¸JÐ$ÓGˆáÝ)à—h‘h˜wŸ}™}¨SÓ1°"°1Ð5Ó6ˆGØ�O‰O˜N¸ˆOÕAà�O‰O˜NÔ+Ø�‰ÔØ�‰Ôà—J‘Jò 	ˆDØˆD�M‰M˜&Ñ?¨uÐ?¸Ò?Ø�N‰NÕð	ð 	�‰�nÔ%Ø�‰Ôà�‰�r"   c                 ó    — | j                   |   S r$   ©r   ©r   Úitems     r    Ú__getitem__zTTCollection.__getitem__p   ó   € Ø�z‰z˜$ÑÐr"   c                 ó"   — || j                   |<   y r$   rR   )r   rT   r*   s      r    Ú__setitem__zTTCollection.__setitem__s   s   € Ø ˆ�
‰
�4Òr"   c                 ó    — | j                   |   S r$   rR   rS   s     r    Ú__delitem__zTTCollection.__delitem__v   rV   r"   c                 ó,   — t        | j                  «      S r$   )r2   r   r&   s    r    Ú__len__zTTCollection.__len__y   s   € Ü�4—:‘:‹Ðr"   c                 ó,   — t        | j                  «      S r$   )Úiterr   r&   s    r    Ú__iter__zTTCollection.__iter__|   s   € Ü�D—J‘JÓÐr"   )NF)T)ú
T)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r!   r'   r,   r   r<   rP   rU   rX   rZ   r\   r_   r%   r"   r    r   r   
   s>   „ ñóò6òòóó<ò0 ò!ò òó r"   r   )ÚfontTools.ttLib.ttFontr   ÚfontTools.ttLib.sfntr   r   Úior   r6   ÚloggingÚ	getLoggerra   ÚlogÚobjectr   r%   r"   r    ú<module>rl      s4   ðÝ )ß >Ý Û Û à€g×Ñ˜Ó!€ôs �6õ s r"   