
    Q?h                     \   S r SrSSSSS.r0 SS_SS	_S
S_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_S S_S!S_S"S_S#S$_S$S$S$S%.Er0 r\" \R                  5       5       HA  r\\   R                  5       r	\	\;  a  \\\	'   \S&   R                  5       r	\	\;  d  M<  \\\	'   MC     S' r
S( rS) rg*)+z3.3.0a  Utilities to associate bold and italic versions of fonts into families

Bold, italic and plain fonts are usually implemented in separate disk files;
but non-trivial apps want <b>this</b> to do the right thing.   We therefore
need to keep 'mappings' between the font family name and the right group
of up to 4 implementation fonts to use.

Most font-handling code lives in pdfbase, and this probably should too.

times	helveticacourier)serif	sansserif
monospacedarial)r       r	   zTimes-Roman)r      r	   z
Times-Bold)r   r	   r
   zTimes-Italic)r   r
   r
   zTimes-BoldItalic)r   r	   r	   Courier)r   r
   r	   zCourier-Bold)r   r	   r
   zCourier-Oblique)r   r
   r
   zCourier-BoldOblique)r   r	   r	   	Helvetica)r   r
   r	   zHelvetica-Bold)r   r	   r
   zHelvetica-Oblique)r   r
   r
   zHelvetica-BoldOblique)symbolr	   r	   Symbol)r   r
   r	   )r   r	   r
   )r   r
   r
   )zapfdingbatsr	   r	   ZapfDingbats))r   r
   r	   )r   r	   r
   )r   r
   r
   r	   c                 d    U R                  5       n U [        ;   a	  [        U    $ [        SU -  5      e)z(ps fontname to family name, bold, italicz-Can't map determine family/bold/italic for %s)lower
_ps2tt_map
ValueError)psfns    E/var/www/html/env/lib/python3.13/site-packages/reportlab/lib/fonts.pyps2ttr   I   s1    ::<Dz$
DtK
LL    c                     U R                  5       X4nU[        ;   a	  [        U   $ [        US   5      u  pnXU-  XR-  4nU[        ;   a	  [        U   $ [        SXU4-  5      e)z+family name + bold & italic to ps font namer	   z:Can't find concrete font for family=%s, bold=%d, italic=%d)r   
_tt2ps_mapr   r   )fnbiKb1i1s         r   tt2psr!   P   sl    	AAJ!}1Q4[
1bdN
?a= 
QUW\]T^^
__r   c                 h    U R                  5       X4nU[        U'   U[        UR                  5       '   g)z,allow a custom font to be put in the mappingN)r   r   r   )facebolditalicpsnameks        r   
addMappingr(   \   s+    

d"AJqM!"Jv||~r   N)__version____doc___family_aliasr   r   sortedkeysr'   r   vr   r!   r(    r   r   <module>r0      s  
 		, #"	] \ ^	
 / y ~ 0 4    !1  !4  !8$ h%& h'( h)* h+0 #N12 %3$2$27
< 
	
!	"A1A

1	!

A

1 
#M
`#r   