cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ŒôXc@sÈddlZddlZddlZdZdZdZdZdZdZdZ    dZ
dZ dZ d „d „d„d„gZ d„Zd„Zd„Zd„Zd„Zdejfd„ƒYZdS( iÿÿÿÿNifcpiiiiiiiiicCs |dd?S(Nii((tbits((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyt<lambda>(scCs|dd?d@S(Niiiiþÿÿÿ((R((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyR)scCs|dd?d@S(Niiiüÿÿÿ((R((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyR*scCs|dd?d@S(Ni?iiiøÿÿÿ((R((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyR+scCs t|dƒt|dƒd>S(Niii(tord(tc((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pytl16/scCsDt|dƒt|dƒd>t|dƒd>t|dƒd>S(Niiiiiii(R(R((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pytl321scCs t|dƒt|dƒd>S(Niii(R(R((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pytb164scCsDt|dƒt|dƒd>t|dƒd>t|dƒd>S(Niiiiiii(R(R((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pytb326scCs||tj|d|ƒ!S(Nt(tstringtindex(tsto((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pytsz9st PcfFontFilecBsDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(tnamec    Cs¨t|jdƒƒ}|tkr-td‚ntjj|ƒt|jdƒƒ}i|_xlt|ƒD]^}t|jdƒƒ}t|jdƒƒt|jdƒƒt|jdƒƒf|j|<qhW||_|j    ƒ|_
|j ƒ}|j |ƒ}|j ƒ}x˜tdƒD]Š}    ||    }
|
dk    r||
\} } } }}}}}|df| || | | |fdd| | f||
f}||j|    <qqWdS(Nisnot a PCF fileii(Rtreadt    PCF_MAGICt SyntaxErrortFontFilet__init__ttoctrangetfpt_load_propertiestinfot _load_metricst _load_bitmapst_load_encodingtNonetglyph(tselfRtmagictcounttittypetmetricstbitmapstencodingtchtixtxtytltrtwtatdtfR((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyRCs(      G      
 "<cCsx|j|\}}}|j}|j|ƒt|jdƒƒ}|d@r[tt}}n tt}}||||fS(Ni(RRtseekRRRRR(RttagtformattsizetoffsetRti16ti32((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyt
_getformatcs     
 c Cs(i}|jtƒ\}}}}||jdƒƒ}g}xWt|ƒD]I}|j||jdƒƒt|jdƒƒ||jdƒƒfƒqIW|d@r»|jd|d@dƒn|j||jdƒƒƒ}    xH|D]@\}
} } t|    |
ƒ}
| rt|    | ƒ} n| ||
<qàW|S(Niii(R8tPCF_PROPERTIESRRtappendRR1R ( Rt
propertiesRR3R6R7tnpropstpR"tdatatkR tv((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyRssG
c
Csôg}|jtƒ\}}}}|j}|d@dkrx³t||jdƒƒƒD]¹}t|jdƒƒd}t|jdƒƒd}    t|jdƒƒd}
t|jdƒƒd} t|jdƒƒd} |    |} | | }|| |||    |
| | dfƒqVWnÚx×t||jdƒƒƒD]º}||jdƒƒ}||jdƒƒ}    ||jdƒƒ}
||jdƒƒ} ||jdƒƒ} ||jdƒƒ}|    |} | | }|| |||    |
| | |fƒq2W|S(Niÿiiii€ii(R8t PCF_METRICSR:RRR(RR$RR3R6R7R:R"tlefttrighttwidthtascenttdescenttxsizetysizet
attributes((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyRs8    "
 
"
 
c
Cs·g}|jtƒ\}}}}||jdƒƒ}|t|ƒkrTtd‚ng}x0t|ƒD]"}    |j||jdƒƒƒqgWg}
x0tdƒD]"}    |
j||jdƒƒƒq W|d@} |d@} |d@} |
| }|j|ƒ|j|ƒ}t| }d}| r)d}nx‡t|ƒD]y}    ||    \}}}}}}}}||    ||    d}}|jtj    d||f|||!d|||ƒƒƒq6W|S(    NisWrong number of bitmapsiis1;Rt1itraw(
R8t PCF_BITMAPSRtlentIOErrorRR:t BYTES_PER_ROWtImaget
fromstring(RR$R%RR3R6R7tnbitmapstoffsetsR"t bitmapSizest    byteordertbitordertpadindext
bitmapsizeR>tpadtmodeR)R*R+R,R-R.R/R0tbte((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyR½s6   
 
 
 
 
    "6cCsdgd}|jtƒ\}}}}||jdƒƒ||jdƒƒ}}||jdƒƒ||jdƒƒ}}    ||jdƒƒ}
||d|    |d} x_t| ƒD]Q} ||jdƒƒ} | dkrºy| || |<Wq tk
rPq XqºqºW|S(Niiiiÿÿ(RR8tPCF_BDF_ENCODINGSRRt
IndexError(RR&RR3R6R7tfirstColtlastColtfirstRowtlastRowtdefaultt    nencodingR"tencodingOffset((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyRês ++   (    t__name__t
__module__RRR8RRRR(((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyR?s                 .    -iiiiii i@i€i(RPRR    RR9tPCF_ACCELERATORSRARLtPCF_INK_METRICSR]t PCF_SWIDTHStPCF_GLYPH_NAMEStPCF_BDF_ACCELERATORSRORRRRR R(((sr.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\PcfFontFile.pyt<module>s,