Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
2øªj� ã @ sV d dl mZ d dlmZmZ d dlmZ d dlZd dlZej e
ƒZG dd„ deƒZ
dS )é )ÚTTFont)Ú
readTTCHeaderÚwriteTTCHeader)ÚBytesIONc @ sn e Zd ZdZddd„Zdd„ Zdd „ Zd
d„ Zdd
d„Zddd„Z dd„ Z
dd„ Zdd„ Zdd„ Z
dd„ ZdS )Ú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.
NFc K s† g }| _ |d krd S d|ks&t|ƒ‚t|dƒs:t|dƒ}|rBi nd }t|ƒ}x2t|jƒD ]$}t|f||dœ|—Ž}|j|ƒ qZW d S )NÚ
fontNumberÚreadÚrb)r Z_tableCache) ÚfontsÚAssertionErrorÚhasattrÚopenr ÚrangeZnumFontsr Úappend) ÚselfÚfileÚshareTablesÚkwargsr
Ú
tableCacheÚheaderÚiÚfont© r úA/tmp/pip-build-_d5lkt3n/fonttools/fontTools/ttLib/ttCollection.pyÚ__init__ s
zTTCollection.__init__c C s | S )Nr )r r r r Ú __enter__' s zTTCollection.__enter__c C s | j ƒ d S )N)Úclose)r ÚtypeÚvalueÚ tracebackr r r Ú__exit__* s zTTCollection.__exit__c C s x| j D ]}|jƒ qW d S )N)r
r )r r r r r r - s zTTCollection.closeTc C sÄ t |dƒsd}t|dƒ}n
|}tƒ }|r,i nd}t|t| jƒƒ}g }x6| jD ],}|j|jƒ ƒ |j||d� |j ddƒ qLW |j |ƒ |j
tjdt| jƒ f|žŽ ƒ |r¸|j
|j
ƒ ƒ |jƒ dS )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 ÚtellZ_saveÚseekr! ÚstructÚpackÚgetvaluer )r r r Úfinalr Zoffsets_offsetÚoffsetsr r r r Úsave1 s"
zTTCollection.saveÚ
c K s¸ ddl m} |j||d�}|rRddlm} dj|jdƒd d… ƒ}|jd|d� n
|jdƒ |jƒ |jƒ x,| j D ]"}|j
|fd d
i|—Ž |jƒ qtW |jdƒ |jƒ |jƒ d S )Nr )Ú xmlWriter)Ú
newlinestr)ÚversionÚ.r# ZttCollection)ZttLibVersionÚwriteVersionF)
ZfontTools.miscr. Z XMLWriterZ fontToolsr0 ÚjoinÚsplitZbegintagÚnewliner
Z_saveXMLZendtagr ) r Z
fileOrPathr/ r2 r r. Úwriterr0 r r r r ÚsaveXMLO s
zTTCollection.saveXMLc C s
| j | S )N)r
)r Úitemr r r Ú__getitem__g s zTTCollection.__getitem__c C s || j |<