cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
ΙXc@stddlZddlZddlZyddlZWnek
rMdZnXdZd„Zddd„ƒYZdS(iÿÿÿÿNi cCsWxP|D]H}|dkr&|d}n|jt|d?d@ƒt|d@ƒƒqWdS(Niiiiÿ(twritetchr(tfptvaluestv((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pytputi16s   tFontFilecBsAeZdZd„Zd„Zd„Zd„Zd„ZeZ    RS(cCsi|_dgd|_dS(Ni(tinfotNonetglyph(tself((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pyt__init__+s    cCs |j|S(N(R    (R
tix((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pyt __getitem__0scCs5|jr dSd}}}d}x”|D]Œ}|r(|\}}}}    t||d|dƒ}||d|d}|tkr¢|d}|d|d}nt||ƒ}q(q(W|}
||} |
dkrä| dkrädS||_tjd|
| fƒ|_dgd|_d} } x tdƒD]þ}||}|r/|\}}}}    |d|d|d|d}}| | }}| |} | tkrÆd| |} } | | }}|} n|d||d||d||d|f}|jj    |    j
|ƒ|ƒ|||f|j|<q/q/WdS(    sCreate metrics and bitmapNiiiitt1i( tbitmaptmaxtWIDTHtysizetImagetnewRtmetricstrangetpastetcrop(R
thtwtmaxwidthtlinesR    tdtdsttsrctimtxsizeRtxtytitxxtyytx0ty0ts((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pytcompile3sF      
 
    
 
% 
      2cCsò|jƒ|jjtjj|ƒdddƒttjj|ƒdddƒ}|jdƒ|jd|jƒ|jdƒx_t    d    ƒD]Q}|j
|}|s¿t |dgd
ƒqt ||d|d |d ƒqW|j ƒd S(sSave font in version 1 formatis.pbmtPNGs.piltwbsPILfont
s
;;;;;;%d;
sDATA
ii
iiN( R+RtsavetostpathtsplitexttopenRRRRRtclose(R
tfilenameRtidtm((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pytsave1cs
'#   %cCs»|jƒtj|j|jfƒ}trDdtj|dƒ}n
d|}ttj    j
|ƒdddƒ}|j d|j dd    ƒ|j |ƒ|j j|d
ƒ|jƒd S( sSave font in version 2 formattzi    tuis.pilR-s    PILfont2
s
sDATA
R,N(R+tmarshaltdumpsRRtzlibtcompressR2R/R0R1RtnameRR.R3(R
R4tdataR((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pytsave2ys
 
# N(
t__name__t
__module__RRR R R+R7R@R.(((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pyR's            0        ((    R/RR:R<t ImportErrorRRRR(((so.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\FontFile.pyt<module>s