+
    UBi7                      a  0 t $ ^ RIHt ^ RIt^RIHtHt ^RIHt ^RIH	t
 ^RIHt ^RIHt ^RIHt R	t]'       d   ^ R
IHt ^ RIHt Rt^t^t^t^t^t^ t^@t^tRtR R R R .t R]!R&   R R lt" ! R R]P
                  4      t#R# )    )annotationsN)FontFileImage)i8)i16be)i16le)i32be)i32leF)Callable)BinaryIOifcpc                "    V ^,           ^,	          # )    bitss   &4/usr/lib/python3.14/site-packages/PIL/PcfFontFile.py<lambda>r   2   s    4!8/    c                0    V ^,           ^,	          R,          # )   r   r   s   &r   r   r   3       4"9"b(r   c                0    V ^,           ^,	          R,          # )   r   r   s   &r   r   r   4   r   r   c                0    V ^?,           ^,	          R,          # )?   ir   r   s   &r   r   r   5   r   r   zlist[Callable[[int], int]]BYTES_PER_ROWc               $    V ^8  d   QhRRRRRR/# )   sbytesointreturnr   )formats   "r   __annotate__r'   9   s!     $ $% $C $E $r   c                *    WV P                  R V4       # )    )index)r!   r#   s   &&r   szr+   9   s    "##r   c                  v   a  ] tR t^=tRtRtRR V 3R llltR R ltR R ltR	 R
 lt	R R lt
R R ltRtV ;t# )PcfFontFilez(Font file plugin for the X11 PCF format.namec                    V ^8  d   QhRRRR/# )r    fpr   charset_encodingstrr   )r&   s   "r   r'   PcfFontFile.__annotate__B   s     , ,8 ,s ,r   c           	     	.  < W n         \        VP                  ^4      4      pV\        8w  d   Rp\	        V4      h\
        SV `  4        \        VP                  ^4      4      p/ V n        \        V4       Fw  p\        VP                  ^4      4      p\        VP                  ^4      4      \        VP                  ^4      4      \        VP                  ^4      4      3V P                  V&   Ky  	  Wn	        V P                  4       V n        V P                  4       pV P                  V4      p	V P                  4       p
\        V
4       FK  w  rVf   K  W,          w  ppppppppV^ 3VVV,
          W,           V3^ ^ W3W,          3V P                   V&   KM  	  R# )   znot a PCF fileN)r1   l32read	PCF_MAGICSyntaxErrorsuper__init__tocranger0   _load_propertiesinfo_load_metrics_load_bitmaps_load_encoding	enumerateglyph)selfr0   r1   magicmsgcountitypemetricsbitmapsencodingchixxsizeysizeleftrightwidthascentdescent
attributes	__class__s   &&&                  r   r;   PcfFontFile.__init__B   sd    0BGGAJI"Cc""BGGAJuArwwqz?D _c"''!*os2771:NDHHTN  ))+	$$&$$W-&&(
  )FB~ K	 AJ7U?EL'B5(K	"

2 *r   c                    V ^8  d   QhRRRR/# )r    tagr$   r%   zDtuple[BinaryIO, int, Callable[[bytes], int], Callable[[bytes], int]]r   )r&   s   "r   r'   r3   p   s     $ $$	M$r   c                	    V P                   V,          w  r#pV P                  pVP                  V4       \        VP	                  ^4      4      pV^,          '       d   \
        \        rvM\        \        rvWRWg3# r5   )r<   r0   seekr6   r7   b16b32l16)rE   r[   r&   sizeoffsetr0   i16i32s   &&      r   
_getformatPcfFontFile._getformatp   s]      $xx}fWW
RWWQZA::CC3##r   c                   V ^8  d   QhRR/# )r    r%   zdict[bytes, bytes | int]r   )r&   s   "r   r'   r3      s      ": r   c           
     	P   / pV P                  \        4      w  r#rEV! VP                  ^4      4      p\        V4       Uu. uFI  qu! VP                  ^4      4      \	        VP                  ^4      4      V! VP                  ^4      4      3NKK  	  ppV^,          '       d/   VP                  ^V^,          ,
          \        P                  4       VP                  V! VP                  ^4      4      4      p	V F(  w  rpV'       d   \        W4      MTpW\        W4      &   K*  	  V# u upi r]   )	rf   PCF_PROPERTIESr7   r=   r   r^   ioSEEK_CURr+   )rE   
propertiesr0   r&   rd   re   nprops_pdatakr!   vproperty_values   &             r   r>   PcfFontFile._load_properties   s     
#~>CRWWQZ JOvWAc"''!*or"''!*~s2771:?WA::GGA!$bkk2wws2771:'GA!9:"T+N&4r${#   Xs   AD#c                   V ^8  d   QhRR/# )r    r%   3list[tuple[int, int, int, int, int, int, int, int]]r   )r&   s   "r   r'   r3      s     # #R #r   c                	   . pV P                  \        4      w  r#rEVP                  pVR ,          R8X  d   \        V! VP	                  ^4      4      4       F  p\        VP	                  ^4      4      ^,
          p\        VP	                  ^4      4      ^,
          p	\        VP	                  ^4      4      ^,
          p
\        VP	                  ^4      4      ^,
          p\        VP	                  ^4      4      ^,
          pW,
          pW,           pV! WWWV^ 34       K  	  V# \        V! VP	                  ^4      4      4       F  pV! VP	                  ^4      4      pV! VP	                  ^4      4      p	V! VP	                  ^4      4      p
V! VP	                  ^4      4      pV! VP	                  ^4      4      pV! VP	                  ^4      4      pW,
          pW,           pV! WWWW34       K  	  V# )i      )rf   PCF_METRICSappendr=   r7   r   )rE   rK   r0   r&   rd   re   r{   rI   rR   rS   rT   rU   rV   rP   rQ   rW   s   &               r   r@   PcfFontFile._load_metrics   s    HJ#{;CVO%3rwwqz?+"''!*~+2771:,2771:,BGGAJ#-RWWQZ.3.(d5'1MN ,.  3rwwqz?+2771:BGGAJBGGAJRWWQZbggaj/ _
(d5'VW , r   c                    V ^8  d   QhRRRR/# )r    rK   rw   r%   zlist[Image.Image]r   )r&   s   "r   r'   r3      s     ( (J(	(r   c                	   V P                  \        4      w  r#rEV! VP                  ^4      4      pV\        V4      8w  d   Rp\	        V4      h\        V4       Uu. uF  q! VP                  ^4      4      NK  	  p	p\        ^4       Uu. uF  q! VP                  ^4      4      NK  	  p
pV^,          pV^,          pW,          pV	P                  V4       VP                  V4      p\        V,          pRpV'       d   Rp. p\        V4       FZ  pVV,          R,          w  ppV	VV^,            w  ppVP                  \        P                  ! RVV3VVV RVV! V4      4      4       K\  	  V# u upi u upi )r5   zWrong number of bitmapsz1;R1:Nr    Nraw)
rf   PCF_BITMAPSr7   lenOSErrorr=   r{   r   r   	frombytes)rE   rK   r0   r&   rd   re   nbitmapsrG   ro   offsetsbitmap_sizesbitorderpadindex
bitmapsizerq   padmoderL   rI   rP   rQ   bes   &&                     r   rA   PcfFontFile._load_bitmaps   sP     ${;Crwwqz?s7|#+C#,,1(O<Oq3rwwqz?O<16q:ABGGAJ: A:A:!+
z"wwz"H%DxA"1:b>LE51q1u%DAqNNeU^T!AYtSQVZX ! 5 =:s   E+E0c                   V ^8  d   QhRR/# )r    r%   zlist[int | None]r   )r&   s   "r   r'   r3      s       0 r   c                	   V P                  \        4      w  rr4V! VP                  ^4      4      V! VP                  ^4      4      reV! VP                  ^4      4      V! VP                  ^4      4      rV! VP                  ^4      4       We,
          ^,           W,
          ^,           ,          p	R.\        RV	4      ,          p
\	        V	4       Uu. uF  q! VP                  ^4      4      NK  	  pp\	        V\        V
4      4       FF  p V\        \        V.4      P                  V P                  4      4      ,          pVR8w  d   WV&   KF  KH  	  V
# u upi   \         d     K_  i ; i)r    Nry   i  )rf   PCF_BDF_ENCODINGSr7   minr=   r   ord	bytearraydecoder1   UnicodeDecodeError)rE   r0   r&   rd   re   	first_collast_col	first_rowlast_row	nencodingrM   ro   encoding_offsetsrI   encoding_offsets   &              r   rB   PcfFontFile._load_encoding   s4   #/@AC!"''!*os2771:8!"''!*os2771:8BGGAJ)A-(2F2JK	 '+Vc#y.A%A5:95EF5EC
O5EFy#h-0A"2	1#--d.C.CDE# #f,"1QK - 1  G & s   EA EE$#E$)r1   r0   r?   r<   )z	iso8859-1)__name__
__module____qualname____firstlineno____doc__r.   r;   rf   r>   r@   rA   rB   __static_attributes____classcell__)rX   s   @r   r-   r-   =   s6    2D, ,\$"0#J(T r   r-   ry   )$__conditional_annotations__
__future__r   rk    r   r   _binaryr   r   r_   r   ra   r	   r`   r
   r6   TYPE_CHECKINGcollections.abcr   typingr   r8   rj   PCF_ACCELERATORSrz   r   PCF_INK_METRICSr   PCF_SWIDTHSPCF_GLYPH_NAMESPCF_BDF_ACCELERATORSr   __annotations__r+   r-   )r   s   @r   <module>r      s   $ # " 	   ! ! ! !(
 	    #(((	-) $E(## Er   