+
    f7i  c                   sH    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                s     \        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   Z
getIndicescloser   )pathreaderZindicess   &  ?/usr/lib64/python3.14/site-packages/fontTools/ttLib/macUtils.pygetSFNTResIndicesr      sC    %##F+ 	s   -0 A A c                s   ^ 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   ZappendZTTFont
TTLibError)r   r
   ZfontsZsfntsZindexs   &    r   openTTFontsr      su      Ed#EU\\$'( L	 ELLd23 ""#@4#GHHL    c                   s6   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                sJ  < ^ 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# )i    r	   r   Nzsfnt resource not found: %s)r   r
   r   Z
isinstanceZstrZgetNamedResourceZgetIndResourcer   r   rsrcZsuperr   __init__Zdataname)Zselfr   Zres_name_or_indexr
   r   r   	__class__s   &&&   r   r   ZSFNTResourceReader.__init__)   s    #%'--**63DED((1BCD<""#@CT#TUU	 $0;	r   )r   r   )	Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__r   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r   &   s     = r   r   N)	r   Zior    ZfontTools.misc.macResr   r   r   r   r   ) r   r   <module>r      s$    6  ?( r   