+
    i                     H    R t ^ RIHt ^ RIHtHt R tR t ! R R]4      tR# )z0ttLib.macUtils.py -- Various Mac-specific stuff.)BytesIO)ResourceReaderResourceErrorc                     \        V 4      pVP                  R4      pVP                  4        V#   \         d    . u # i ; i)z;Determine whether a file has a 'sfnt' resource fork or not.sfnt)r   
getIndicescloser   )pathreaderindicess   &  x/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/fontTools/ttLib/macUtils.pygetSFNTResIndicesr      sC    %##F+ 	s   -0 A A c                   ^ RI Hp . p\        V 4      pV'       g#   VP                  VP	                  V 4      4       V# V F#  pVP                  VP	                  W4      4       K%  	  V'       g   VP                  RV ,          4      hV# )zGiven 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.
ttLibzno fonts found in file '%s')	fontToolsr   r   appendTTFont
TTLibError)r	   r   fontssfntsindexs   &    r   openTTFontsr      su      Ed#EU\\$'( L	 ELLd23 ""#@4#GHHL    c                   6   a a ] tR t^&t oRtV 3R ltRtVtV ;t# )SFNTResourceReaderz3Simple read-only file wrapper for 'sfnt' resources.c                J  < ^ RI Hp \        V4      p\        V\        4      '       d   VP                  RV4      pMVP                  RV4      pVf   VP                  RV,          4      hVP                  4        WPn	        \        \        V `3  VP                  4       Wn        R# )    r   r   Nzsfnt resource not found: %s)r   r   r   
isinstancestrgetNamedResourcegetIndResourcer   r   rsrcsuperr   __init__dataname)selfr	   res_name_or_indexr   r
   r"   	__class__s   &&&   r   r$   SFNTResourceReader.__init__)   s    #%'--**63DED((1BCD<""#@CT#TUU	 $0;	r   )r&   r"   )	__name__
__module____qualname____firstlineno____doc__r$   __static_attributes____classdictcell____classcell__)r)   __classdict__s   @@r   r   r   &   s     = r   r   N)	r/   ior   fontTools.misc.macResr   r   r   r   r    r   r   <module>r7      s$    6  ?( r   