+
     i  c                  sZ    ^ RI Ht ^ RIt^ RIHt ^RIHtHt RtR R lt	 ! R R	4      t
R# )
    )annotationsN)BinaryIO)Image_binaryi   c               s$    V ^8  d   QhRRRRRR/# )   fpr   valuesz7tuple[int, int, int, int, int, int, int, int, int, int]returnNone Zformat   "3/usr/lib64/python3.14/site-packages/PIL/FontFile.py__annotate__r      s$     # ##Q#	#    c                s    V F8  pV^ 8  d
   VR,          pV P                  \        P                  ! V4      4       K:  	  R# )z0Write network order (big-endian) 16-bit sequencei   N)writer   Zo16be)r   r   Zvs   && r   puti16r      s3     q5JA
q!" r   c                  sZ    ] tR t^$t$ RtRtR]R&   R R ltR R ltR	 R
 lt	R R lt
RtR# )FontFilez)Base class for raster font file handlers.NzImage.Image | Nonebitmapc                   V ^8  d   QhRR/# r   r   r	   r
   r   r   r   r   FontFile.__annotate__)   s     
 
$ 
r   c                	s2    / V n         R .R,          V n        R # )N   )infoglyph)selfs   &r   __init__ZFontFile.__init__)   s    .0	 FSL 	
r   c                    V ^8  d   QhRRRR/# )r   ixZintr   z`tuple[tuple[int, int], tuple[int, int, int, int], tuple[int, int, int, int], Image.Image] | Noner
   r   r   r   r   r   5   s     	 	c 			r   c                	s(    V P                   V,          # )N)r   )r   r   s   &&r   __getitem__ZFontFile.__getitem__5   s     zz"~r   c               r   r   r
   r   r   r   r   r   @   s     /, /, /,r   c                s   V P                   '       d   R# ^ ;p;r#^pV P                   F  pV'       g   K  Vw  rgr\        W^,          V^,          ,
          4      pW(^,          V^ ,          ,
          ,           pV\        8  d!   V^,          pV^,          V^ ,          ,
          p\        W24      pK  	  Tp
WA,          pV
^ 8X  d
   V^ 8X  d   R# Wn        \
        P                  ! RW34      V n         R.R,          V n        ^ ;r\        R4       F  pW,          pV'       g   K  Vw  rgrV^,          V^ ,          ,
          pYppW,           pV\        8  d   ^ W,           rYppTpV^ ,          V,           V^,          V,           V^,          V,           V^,          V,           3pV P                   P                  V	P                  V4      V4       WgV3V P                  V&   K  	  R# )zCreate metrics and bitmapNZ1r   )r   r   ZmaxWIDTHysizer   ZnewmetricsrangeZpasteZcrop)r   ZhZwZmaxwidthZlinesr   ZdZdstZsrcZimZxsizer    ZxZyZiZxxZx0Zy0Zss   &                  r   compileZFontFile.compile@   s    ;;; AZZEu"'q6CF?+Q#a&)u9QJEAQAx+   	A:%1*
 iie^4 FSL 	 	sAGEu"'Vc!f_BFu9aeqBAFRKQ"c!frk3q6B;F!!"''#,2"#!)Q r   c               r   )r   filenameZstrr   r	   r
   r   r   r   r   r   q   s     3 3S 3T 3r   c           	     s   V P                  4        V P                  '       g   Rp\        V4      hV P                  P                  \        P
                  P                  V4      ^ ,          R,           R4       \        \        P
                  P                  V4      ^ ,          R,           R4      ;_uu_ 4       pVP                  R4       VP                  RV P                   R2P                  R	4      4       VP                  R
4       \        R4       FZ  pV P                  V,          pV'       g   \        VR4       K,  \        W5^ ,          V^,          ,           V^,          ,           4       K\  	  RRR4       R#   + '       g   i     R# ; i)z	Save fontzNo bitmap createdz.pbmZPNGz.pilZwbs   PILfont
z;;;;;;z;
Zasciis   DATA
r   N)
r    r    r    r    r    r    r    r    r    r    )r#   r   Z
ValueErrorsaveosZpathZsplitextZopenr   r    Zencoder"   r!   r   )r   r$   Zmsgr   ZidZms   &&    r   r%   ZFontFile.saveq   s    	 {{{%CS/!))(3A6?G "''""8,Q/&8$??2HH\"HHvdjj\-44W=>HHYCjLL$2y)2tad{QqT12 !	 @???s   6B:E::F	)r   r   r   r!   r    )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   Z__annotations__r   r   r#   r%   Z__static_attributes__r
   r   r   r   r   $   s*    3!%F%
	/,b3 3r   r   )Z
__future__r   r&   Ztypingr   Z r   r   r   r   r   r
   r   r   <module>r'      s)     # 	  #b3 b3r   