+
    %ip                    ^    ^ RI Ht ^ RIt^ RIHt ^RIHtHtHt Rt	R R lt
 ! R R	4      tR# )
    )annotationsN)BinaryIO)Image	ImageFont_binaryi   c               $    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 )formats   "J/var/www/html/photoedit/myenv/lib/python3.14/site-packages/PIL/FontFile.py__annotate__r      s$     # ##Q#	#    c                    V F8  pV^ 8  d
   VR,          pV P                  \        P                  ! V4      4       K:  	  R# )z0Write network order (big-endian) 16-bit sequence   N)writer   o16be)r
   r   vs   && r   puti16r      s3     q5JA
q!" r   c                  r    ] 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 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   s   "r   r   FontFile.__annotate__)   s     
 
$ 
r   c                	2    / V n         R .R,          V n        R # )N   )infoglyph)selfs   &r   __init__FontFile.__init__)   s    .0	 FSL 	
r   c                    V ^8  d   QhRRRR/# )r	   ixintr   z`tuple[tuple[int, int], tuple[int, int, int, int], tuple[int, int, int, int], Image.Image] | Noner   )r   s   "r   r   r   5   s     	 	c 			r   c                	(    V P                   V,          # )N)r"   )r#   r'   s   &&r   __getitem__FontFile.__getitem__5   s     zz"~r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   @   s     /, /, /,r   c                   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 bitmapN1r    )r   r"   maxWIDTHysizer   newmetricsrangepastecrop)r#   hwmaxwidthlinesr"   ddstsrcimxsizer1   xyixxx0y0ss   &                  r   compile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                   V ^8  d   QhRR/# )r	   r   bytesr   )r   s   "r   r   r   q   s       r   c                	   . p\        R 4       Fe  pV P                  V,          pV'       d7   VP                  V^ ,          V^,          ,           V^,          ,           4       KT  VP                  R4       Kg  	  \        4       pV F0  pV^ 8  d
   VR,          pV\        P
                  ! V4      ,          pK2  	  \        V4      # )r    r   )
r   r   r   r   r   r   r   r   r   r   )r4   r3   extend	bytearrayr   r   rJ   )r#   r   rB   mdatar   s   &     r   _encode_metricsFontFile._encode_metricsq   s    sAQAadQqTkAaD01i(  {A1uU
GMM!$$D  T{r   c                    V ^8  d   QhRRRR/# )r	   filenamestrr   r   r   )r   s   "r   r   r      s     - -S -T -r   c                   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       VP                  V P                  4       4       RRR4       R#   + '       g   i     R# ; i)z	Save fontNo bitmap createdz.pbmPNGz.pilwbs   PILfont
z;;;;;;z;
asciis   DATA
N)rG   r   
ValueErrorsaveospathsplitextopenr   r1   encoderP   )r#   rS   msgr
   s   &&  r   r[   FontFile.save   s     	 {{{%CS/!))(3A6?G "''""8,Q/&8$??2HH\"HHvdjj\-44W=>HHYHHT))+,	 @???s   6A0D00E	c                   V ^8  d   QhRR/# )r	   r   zImageFont.ImageFontr   )r   s   "r   r   r      s      1 r   c                    V P                  4        V P                  '       g   Rp\        V4      h\        P                  ! 4       pVP	                  V P                  V P                  4       4       V# )zConvert to ImageFontrV   )rG   r   rZ   r   _loadrP   )r#   ra   	imagefonts   &  r   to_imagefontFontFile.to_imagefont   sV     	 {{{%CS/!'')	T%9%9%;<r   )r   r"   r!   r3   r1   )__name__
__module____qualname____firstlineno____doc__r   __annotations__r$   r*   rG   rP   r[   rg   __static_attributes__r   r   r   r   r   $   s4    3!%F%
	/,b -$ r   r   )
__future__r   r\   typingr    r   r   r   r0   r   r   r   r   r   <module>rs      s,     # 	  ' '#{ {r   