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 ã @ sD d Z ddlmZ ddlmZmZ dd„ Zdd„ ZG dd „ d eƒZd
S )z0ttLib.macUtils.py -- Various Mac-specific stuff.é )ÚBytesIO)ÚResourceReaderÚ
ResourceErrorc C s8 yt | ƒ}|jdƒ}|jƒ |S tk
r2 g S X dS )z;Determine whether a file has a 'sfnt' resource fork or not.ÚsfntN)r Z
getIndicesÚcloser )ÚpathÚreaderÚindices© r
ú=/tmp/pip-build-_d5lkt3n/fonttools/fontTools/ttLib/macUtils.pyÚgetSFNTResIndices s
r c C sd ddl m} g }t| ƒ}|s.|j|j| ƒƒ n2x|D ]}|j|j| |ƒƒ q4W |s`|jd| ƒ‚|S )züGiven a pathname, return a list of TTFont objects. In the case
of a flat TTF/OTF file, the list will contain just one font object;
but in the case of a Mac font suitcase it will contain as many
font objects as there are sfnt resources in the file.
r )ÚttLibzno fonts found in file '%s')Ú fontToolsr
r ÚappendZTTFontÚ
TTLibError)r r
ZfontsZsfntsÚindexr
r
r ÚopenTTFonts s
r c s e Zd ZdZ‡ fdd„Z‡ ZS )ÚSFNTResourceReaderz3Simple read-only file wrapper for 'sfnt' resources.c sx ddl m} t|ƒ}t|tƒr,|jd|ƒ}n|jd|ƒ}|d krN|jd| ƒ‚|jƒ || _ t
t| ƒj|j
ƒ || _d S )Nr )r
r zsfnt resource not found: %s)r r
r Ú
isinstanceÚstrZgetNamedResourceZgetIndResourcer r ÚrsrcÚsuperr Ú__init__ÚdataÚname)Úselfr Zres_name_or_indexr
r r )Ú __class__r
r r ( s
zSFNTResourceReader.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r Ú
__classcell__r
r
)r r r $ s r N) r Úior ZfontTools.misc.macResr r r r r r
r
r
r Ú s