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� ã@sVddlmZddlmZmZddlmZddlZddlZej e ƒZ Gdd„de ƒZ dS)é)ÚTTFont)Ú readTTCHeaderÚwriteTTCHeader)ÚBytesIONc@sneZdZdZddd„Zdd„Zdd „Zd d „Zdd d„Zddd„Z dd„Z dd„Z dd„Z dd„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 Ks†g}|_|dkrdSd|ks&t|ƒ‚t|dƒs:t|dƒ}|rBind}t|ƒ}x2t|jƒD]$}t|f||dœ|—Ž}|j|ƒqZWdS)NÚ fontNumberÚreadÚrb)rZ _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__cCs|S)Nr)rrrrÚ __enter__'szTTCollection.__enter__cCs |jƒdS)N)Úclose)rÚtypeÚvalueÚ tracebackrrrÚ__exit__*szTTCollection.__exit__cCsx|jD] }|jƒqWdS)N)r r)rrrrrr-s zTTCollection.closeTcCsÄt|dƒsd}t|dƒ}n |}tƒ}|r,ind}t|t|jƒƒ}g}x6|jD],}|j|jƒƒ|j||d�|j ddƒqLW|j |ƒ|j t j dt|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)rréz>%dL)r r rrÚlenr rÚtellZ_saveÚseekr!ÚstructÚpackÚgetvaluer)rrrÚfinalrZoffsets_offsetÚoffsetsrrrrÚsave1s"      zTTCollection.saveÚ c Ks¸ddlm}|j||d�}|rRddlm}dj|jdƒdd…ƒ}|jd|d�n |jdƒ|jƒ|jƒx,|j D]"}|j |fd d i|—Ž|jƒqtW|j dƒ|jƒ|j ƒdS) Nr)Ú xmlWriter)Ú newlinestr)ÚversionÚ.r#Z ttCollection)Z ttLibVersionÚ writeVersionF) ZfontTools.miscr.Z XMLWriterZ fontToolsr0ÚjoinÚsplitZbegintagÚnewliner Z_saveXMLZendtagr) rZ fileOrPathr/r2rr.Úwriterr0rrrrÚsaveXMLOs      zTTCollection.saveXMLcCs |j|S)N)r )rÚitemrrrÚ __getitem__gszTTCollection.__getitem__cCs||j|<dS)N)r )rr8rrrrÚ __setitem__jszTTCollection.__setitem__cCs |j|S)N)r )rr8rrrÚ __delitem__mszTTCollection.__delitem__cCs t|jƒS)N)r$r )rrrrÚ__len__pszTTCollection.__len__cCs t|jƒS)N)Úiterr )rrrrÚ__iter__sszTTCollection.__iter__)NF)T)r-T)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrr rr,r7r9r:r;r<r>rrrrr s    r)ZfontTools.ttLib.ttFontrZfontTools.ttLib.sfntrrÚiorr'ÚloggingÚ getLoggerr?ÚlogÚobjectrrrrrÚs