API3/Compat/API2/Resource/CIDFont/CJKFont.pm

filter: Statementstmt 25.9% 34 / 131 Branchbran 0.0% 0 / 36 Conditioncond 0.0% 0 / 44 MC/DCmcdc 0.0% 0 / 21 Subroutinesub 61.1% 11 / 18 Podpod 60.0% 3 / 5 totaltotal 18.8% 48 / 255 CC 36 SCAR 51.0
CC
36
Cov
16%
outobjdeep
380.0
new
90.0
_look_for_font
72.0
CRAP 163.4
« API3/Compat/API2/Resource/XObject/Image/JPEG.pm ↑ Summary API3/Compat/API2/Resource/XObject/Form/BarCode.pm »
1 #=======================================================================
2 # ____ ____ _____ _ ____ ___ ____
3 # | _ \| _ \| ___| _ _ / \ | _ \_ _| |___ \
4 # | |_) | | | | |_ (_) (_) / _ \ | |_) | | __) |
5 # | __/| |_| | _| _ _ / ___ \| __/| | / __/
6 # |_| |____/|_| (_) (_) /_/ \_\_| |___| |_____|
7 #
8 # A Perl Module Chain to faciliate the Creation and Modification
9 # of High-Quality "Portable Document Format (PDF)" Files.
10 #
11 # Copyright 1999-2005 Alfred Reibenschuh <areibens@cpan.org>.
12 #
13 #=======================================================================
14 #
15 # This library is free software; you can redistribute it and/or
16 # modify it under the terms of the GNU Lesser General Public
17 # License as published by the Free Software Foundation; either
18 # version 2 of the License, or (at your option) any later version.
19 #
20 # This library is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 # Lesser General Public License for more details.
24 #
25 # You should have received a copy of the GNU Lesser General Public
26 # License along with this library; if not, write to the
27 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
28 # Boston, MA 02111-1307, USA.
29 #
30 # $Id: CJKFont.pm,v 2.1 2007/03/17 20:38:51 areibens Exp $
31 #
32 #=======================================================================
33 package PDF::API3::Compat::API2::Resource::CIDFont::CJKFont;
34
35 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
36
37 1 ▶ use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use Encode qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
39
40 1 ▶ use PDF::API3::Compat::API2::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 1 ▶ use PDF::API3::Compat::API2::Basic::PDF::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 1 ▶ use PDF::API3::Compat::API2::Resource::CIDFont;
Subroutine BEGIN: called CC=1 SCAR=0.0
43
44 1 ▶ use PDF::API3::Compat::API2::Basic::TTF::Font;
Subroutine BEGIN: called CC=1 SCAR=0.0
45
46 1 ▶ use POSIX;
Subroutine BEGIN: called CC=1 SCAR=0.0
47
48 1 ▶ use vars qw( @ISA $fonts $cmap $alias $subs $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
49
50 1 @ISA = qw( PDF::API3::Compat::API2::Resource::CIDFont );
51
52 1 ( $VERSION ) = sprintf '%i.%03i', split(/\./,('$Revision: 2.1 $' =~ /Revision: (\S+)\s/)[0]); # $Date: 2007/03/17 20:38:51 $
53
54 1 $fonts = { };
55 1 $cmap = { };
56 }
57 1 ▶no warnings qw[ deprecated recursion uninitialized ];
Subroutine BEGIN: called CC=1 SCAR=0.0
58
59 =item $font = PDF::API3::Compat::API2::Resource::CIDFont::CJKFont->new $pdf, $cjkname, %options
60
61 Returns a cjk-font object.
62
63 Traditional Chinese: Ming Ming-Bold Ming-Italic Ming-BoldItalic
64
65 Simplified Chinese: Song Song-Bold Song-Italic Song-BoldItalic
66
67 Korean: MyungJo MyungJo-Bold MyungJo-Italic MyungJo-BoldItalic
68
69 Japanese (Mincho): KozMin KozMin-Bold KozMin-Italic KozMin-BoldItalic
70
71 Japanese (Gothic): KozGo KozGo-Bold KozGo-Italic KozGo-BoldItalic
72
73 Defined Options:
74
75 -encode ... specify fonts encoding for non-utf8 text.
76
77 =cut
78
79 0 ▶sub _look_for_font {
Subroutine _look_for_font: not called CC=8 SCAR=42.8
80 0 my $fname=lc(shift);
81 0 $fname=~s/[^a-z0-9]+//gi;
82 0 ▶ $fname=$alias->{$fname} if(defined $alias->{$fname});
Branch: 1 branch
BranchTrueFalseTotal
if defined $alias->{$fname} 0 0 0
83 0 ▶ return({%{$fonts->{$fname}}}) if(defined $fonts->{$fname});
Branch: 1 branch
BranchTrueFalseTotal
if defined $fonts->{$fname} 0 0 0
84
85 0 ▶ if(defined $subs->{$fname}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $subs->{$fname}) 0 0 0
86 0 $data=_look_for_font($subs->{$fname}->{-alias});
87 0 foreach my $k (keys %{$subs->{$fname}}) {
88 0 ▶ next if($k=~/^\-/);
Branch: 1 branch
BranchTrueFalseTotal
if $k =~ /^\-/ 0 0 0
89 0 ▶ if(substr($k,0,1) eq '+')
Branch: 1 branch
BranchTrueFalseTotal
if (substr($k, 0, 1) eq '+') { } 0 0 0
90 {
91 0 $data->{substr($k,1)}.=$subs->{$fname}->{$k};
92 }
93 else
94 {
95 0 $data->{$k}=$subs->{$fname}->{$k};
96 }
97 }
98 0 $fonts->{$fname}=$data;
99 0 return({%{$data}})
100 }
101
102 0 eval "require PDF::API3::Compat::API2::Resource::CIDFont::CJKFont::$fname; ";
103 0 ▶ unless($@){
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 0 0
104 0 return({%{$fonts->{$fname}}});
105 } else {
106 0 die "requested font '$fname' not installed ";
107 }
108 }
109
110 0 ▶sub _look_for_cmap ($) {
Subroutine _look_for_cmap: not called CC=3 SCAR=24.8
111 0 my $fname=lc(shift);
112 0 $fname=~s/[^a-z0-9]+//gi;
113 0 ▶ return({%{$cmap->{$fname}}}) if(defined $cmap->{$fname});
Branch: 1 branch
BranchTrueFalseTotal
if defined $cmap->{$fname} 0 0 0
114 0 eval "require PDF::API3::Compat::API2::Resource::CIDFont::CMap::$fname; ";
115 0 ▶ unless($@){
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 0 0
116 0 return({%{$cmap->{$fname}}});
117 } else {
118 0 die "requested cmap '$fname' not installed ";
119 }
120 }
121 0 ▶sub new {
Subroutine new: not called CC=9 SCAR=45.0
Pod documented
122 0 my ($class,$pdf,$name,@opts) = @_;
123 0 my %opts=();
124 0 ▶ %opts=@opts if((scalar @opts)%2 == 0);
Branch: 1 branch
BranchTrueFalseTotal
if scalar(@opts) % 2 == 0 0 0 0
125 0 ▶ $opts{-encode}||='ident';
Condition0%0/2
$opts{"-encode"} ||= "ident"
l!l
00
MC/DC0%0/1
$opts{"-encode"} ||= "ident"
$opts{"-encode"}
Truth table0%0/2
A
A= $opts{"-encode"}
Aresult
11
00
126
127 0 my $data = _look_for_font($name);
128
129 0 my $cmap = _look_for_cmap($data->{cmap});
130
131 0 $data->{u2g} = { %{$cmap->{u2g}} };
132 0 $data->{g2u} = [ @{$cmap->{g2u}} ];
133
134 0 ▶ $class = ref $class if ref $class;
Branch: 1 branch
BranchTrueFalseTotal
if ref $class 0 0 0
135 0 my $self=$class->SUPER::new($pdf,$data->{apiname}.pdfkey());
136 0 ▶ $pdf->new_obj($self) if(defined($pdf) && !$self->is_obj($pdf));
Branch: 1 branch
BranchTrueFalseTotal
if defined $pdf and not $self->is_obj($pdf) 0 0 0
Condition0%0/3
defined $pdf and not $self->is_obj($pdf)
!ll&&!rl&&r
000
MC/DC0%0/2
defined $pdf and not $self->is_obj($pdf)
defined $pdf not $self->is_obj($pdf)
Truth table0%0/3
A and not(B)
A= defined $pdfB= not $self->is_obj($pdf)
ABresult
0X0
100
111
137
138 0 $self->{' data'}=$data;
139
140 0 my $des=$self->descrByData;
141
142 0 my $de=$self->{' de'};
143
144 0 ▶ if(defined $opts{-encode} && $opts{-encode} ne 'ident') {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $opts{"-encode"} and $opts{"-encode"} ne "ident") 0 0 0
Condition0%0/3
defined $opts{"-encode"} and $opts{"-encode"} ne "ident"
!ll&&!rl&&r
000
MC/DC0%0/2
defined $opts{"-encode"} and $opts{"-encode"} ne "ident"
defined $opts{"-encode"} $opts{"-encode"} ne "ident"
Truth table0%0/3
A and B
A= defined $opts{"-encode"}B= $opts{"-encode"} ne "ident"
ABresult
0X0
100
111
145 0 $self->data->{encode}=$opts{-encode};
146 }
147
148 0 my $emap={
149 'reg'=>'Adobe',
150 'ord'=>'Identity',
151 'sup'=> 0,
152 'map'=>'Identity',
153 'dir'=>'H',
154 'dec'=>'ident',
155 };
156
157 0 ▶ if(defined $cmap->{ccs}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $cmap->{"ccs"}) 0 0 0
158 0 $emap->{reg}=$cmap->{ccs}->[0];
159 0 $emap->{ord}=$cmap->{ccs}->[1];
160 0 $emap->{sup}=$cmap->{ccs}->[2];
161 }
162
163 #if(defined $cmap->{cmap} && defined $cmap->{cmap}->{$opts{-encode}} ) {
164 # $emap->{dec}=$cmap->{cmap}->{$opts{-encode}}->[0];
165 # $emap->{map}=$cmap->{cmap}->{$opts{-encode}}->[1];
166 #} elsif(defined $cmap->{cmap} && defined $cmap->{cmap}->{'utf8'} ) {
167 # $emap->{dec}=$cmap->{cmap}->{'utf8'}->[0];
168 # $emap->{map}=$cmap->{cmap}->{'utf8'}->[1];
169 #}
170
171 0 $self->data->{decode}=$emap->{dec};
172
173 0 $self->{'BaseFont'} = PDFName($self->fontname."-$emap->{map}-$emap->{dir}");
174 0 $self->{'Encoding'} = PDFName("$emap->{map}-$emap->{dir}");
175
176 0 $de->{'FontDescriptor'} = $des;
177 0 $de->{'Subtype'} = PDFName('CIDFontType0');
178 0 $de->{'BaseFont'} = PDFName($self->fontname);
179 0 $de->{'DW'} = PDFNum($self->missingwidth);
180 0 $de->{'CIDSystemInfo'}->{Registry} = PDFStr($emap->{reg});
181 0 $de->{'CIDSystemInfo'}->{Ordering} = PDFStr($emap->{ord});
182 0 $de->{'CIDSystemInfo'}->{Supplement} = PDFNum($emap->{sup});
183 ## $de->{'CIDToGIDMap'} = PDFName($emap->{map}); # ttf only
184
185 0 return($self);
186 }
187
188 =item $font = PDF::API3::Compat::API2::Resource::CIDFont::CJKFont->new_api $api, $cjkname, %options
189
190 Returns a cjk-font object. This method is different from 'new' that
191 it needs an PDF::API3::Compat::API2-object rather than a Text::PDF::File-object.
192
193 =cut
194
195 0 ▶sub new_api {
Subroutine new_api: not called CC=1 SCAR=6.9
Pod documented
196 0 my ($class,$api,@opts)=@_;
197
198 0 my $obj=$class->new($api->{pdf},@opts);
199 0 $self->{' api'}=$api;
200
201 0 $api->{pdf}->out_obj($api->{pages});
202 0 return($obj);
203 }
204
205 0 ▶sub tounicodemap {
Subroutine tounicodemap: not called CC=1 SCAR=6.9
Pod undocumented
206 0 my $self=shift @_;
207 # noop since pdf knows its char-collection
208 0 return($self);
209 }
210
211 sub glyphByCId
212 0 ▶{
Subroutine glyphByCId: not called CC=1 SCAR=6.9
Pod undocumented
213 0 my ($self,$cid)=@_;
214 0 my $uni = $self->uniByCId($cid);
215 0 return( nameByUni($uni) );
216 }
217
218 0 ▶sub outobjdeep {
Subroutine outobjdeep: not called CC=19 SCAR=59.4
Pod documented
219 0 my ($self, $fh, $pdf, %opts) = @_;
220
221 0 ▶ return $self->SUPER::outobjdeep($fh, $pdf) if defined $opts{'passthru'};
Branch: 1 branch
BranchTrueFalseTotal
if defined $opts{"passthru"} 0 0 0
222
223 0 my $notdefbefore=1;
224
225 0 my $wx=PDFArray();
226 0 $self->{' de'}->{'W'} = $wx;
227 0 my $ml;
228
229 0 foreach my $w (0..(scalar @{$self->data->{g2u}} - 1 )) {
230 0 ▶ if(ref($self->data->{wx}) eq 'ARRAY'
Branch: 4 branches
BranchTrueFalseTotal
if (ref $self->data->{'wx'} eq 'ARRAY' and defined $self->data->{'wx'}[$w] and $self->data->{'wx'}[$w] != $self->missingwidth and $notdefbefore == 1) { } 0 0 0
elsif (ref $self->data->{'wx'} eq 'HASH' and defined $self->data->{'wx'}{$w} and $self->data->{'wx'}{$w} != $self->missingwidth and $notdefbefore == 1) { } 0 0 0
elsif (ref $self->data->{'wx'} eq 'ARRAY' and defined $self->data->{'wx'}[$w] and $self->data->{'wx'}[$w] != $self->missingwidth and $notdefbefore == 0) { } 0 0 0
elsif (ref $self->data->{'wx'} eq 'HASH' and defined $self->data->{'wx'}{$w} and $self->data->{'wx'}{$w} != $self->missingwidth and $notdefbefore == 0) { } 0 0 0
Condition0%0/9
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w] and $self->data->{"wx"}[$w] != $self->missingwidth and $notdefbefore == 1
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w] and $self->data->{"wx"}[$w] != $self->missingwidth
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w]
!ll&&!rl&&r
000
MC/DC0%0/4
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w] and $self->data->{"wx"}[$w] != $self->missingwidth and $notdefbefore == 1
ref $self->data->{"wx"} eq "ARRAY" defined $self->data->{"wx"}[$w] $self->data->{"wx"}[$w] != $self->missingwidth $notdefbefore == 1
Truth table0%0/5
A and B and C and D
A= ref $self->data->{"wx"} eq "ARRAY"B= defined $self->data->{"wx"}[$w]C= $self->data->{"wx"}[$w] != $self->missingwidthD= $notdefbefore == 1
ABCDresult
0XXX0
10XX0
110X0
11100
11111
231 && (defined $self->data->{wx}->[$w])
232 && ($self->data->{wx}->[$w] != $self->missingwidth)
233 && $notdefbefore==1)
234 {
235 0 $notdefbefore=0;
236 0 $ml=PDFArray();
237 0 $wx->add_elements(PDFNum($w),$ml);
238 0 $ml->add_elements(PDFNum($self->data->{wx}->[$w]));
239 }
240 ▶ elsif(ref($self->data->{wx}) eq 'HASH'
Condition0%0/9
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w} and $self->data->{"wx"}{$w} != $self->missingwidth and $notdefbefore == 1
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w} and $self->data->{"wx"}{$w} != $self->missingwidth
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w}
!ll&&!rl&&r
000
MC/DC0%0/4
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w} and $self->data->{"wx"}{$w} != $self->missingwidth and $notdefbefore == 1
ref $self->data->{"wx"} eq "HASH" defined $self->data->{"wx"}{$w} $self->data->{"wx"}{$w} != $self->missingwidth $notdefbefore == 1
Truth table0%0/5
A and B and C and D
A= ref $self->data->{"wx"} eq "HASH"B= defined $self->data->{"wx"}{$w}C= $self->data->{"wx"}{$w} != $self->missingwidthD= $notdefbefore == 1
ABCDresult
0XXX0
10XX0
110X0
11100
11111
241 && (defined $self->data->{wx}->{$w})
242 && ($self->data->{wx}->{$w} != $self->missingwidth)
243 && $notdefbefore==1)
244 {
245 0 $notdefbefore=0;
246 0 $ml=PDFArray();
247 0 $wx->add_elements(PDFNum($w),$ml);
248 0 $ml->add_elements(PDFNum($self->data->{wx}->{$w}));
249 }
250 ▶ elsif(ref($self->data->{wx}) eq 'ARRAY'
Condition0%0/9
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w] and $self->data->{"wx"}[$w] != $self->missingwidth and $notdefbefore == 0
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w] and $self->data->{"wx"}[$w] != $self->missingwidth
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w]
!ll&&!rl&&r
000
MC/DC0%0/4
ref $self->data->{"wx"} eq "ARRAY" and defined $self->data->{"wx"}[$w] and $self->data->{"wx"}[$w] != $self->missingwidth and $notdefbefore == 0
ref $self->data->{"wx"} eq "ARRAY" defined $self->data->{"wx"}[$w] $self->data->{"wx"}[$w] != $self->missingwidth $notdefbefore == 0
Truth table0%0/5
A and B and C and D
A= ref $self->data->{"wx"} eq "ARRAY"B= defined $self->data->{"wx"}[$w]C= $self->data->{"wx"}[$w] != $self->missingwidthD= $notdefbefore == 0
ABCDresult
0XXX0
10XX0
110X0
11100
11111
251 && (defined $self->data->{wx}->[$w])
252 && ($self->data->{wx}->[$w] != $self->missingwidth)
253 && $notdefbefore==0)
254 {
255 0 $notdefbefore=0;
256 0 $ml->add_elements(PDFNum($self->data->{wx}->[$w]));
257 }
258 ▶ elsif(ref($self->data->{wx}) eq 'HASH'
Condition0%0/9
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w} and $self->data->{"wx"}{$w} != $self->missingwidth and $notdefbefore == 0
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w} and $self->data->{"wx"}{$w} != $self->missingwidth
!ll&&!rl&&r
000
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w}
!ll&&!rl&&r
000
MC/DC0%0/4
ref $self->data->{"wx"} eq "HASH" and defined $self->data->{"wx"}{$w} and $self->data->{"wx"}{$w} != $self->missingwidth and $notdefbefore == 0
ref $self->data->{"wx"} eq "HASH" defined $self->data->{"wx"}{$w} $self->data->{"wx"}{$w} != $self->missingwidth $notdefbefore == 0
Truth table0%0/5
A and B and C and D
A= ref $self->data->{"wx"} eq "HASH"B= defined $self->data->{"wx"}{$w}C= $self->data->{"wx"}{$w} != $self->missingwidthD= $notdefbefore == 0
ABCDresult
0XXX0
10XX0
110X0
11100
11111
259 && (defined $self->data->{wx}->{$w})
260 && ($self->data->{wx}->{$w} != $self->missingwidth)
261 && $notdefbefore==0)
262 {
263 0 $notdefbefore=0;
264 0 $ml->add_elements(PDFNum($self->data->{wx}->{$w}));
265 }
266 else
267 {
268 0 $notdefbefore=1;
269 }
270 }
271
272 0 $self->SUPER::outobjdeep($fh, $pdf, %opts);
273 }
274
275 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
276
277 1 $alias={
278 'traditional' => 'adobemingstdlightacro',
279 'traditionalbold' => 'mingbold',
280 'traditionalitalic' => 'mingitalic',
281 'traditionalbolditalic' => 'mingbolditalic',
282 'ming' => 'adobemingstdlightacro',
283
284 'simplified' => 'adobesongstdlightacro',
285 'simplifiedbold' => 'songbold',
286 'simplifieditalic' => 'songitalic',
287 'simplifiedbolditalic' => 'songbolditalic',
288 'song' => 'adobesongstdlightacro',
289
290 'korean' => 'adobemyungjostdmediumacro',
291 'koreanbold' => 'myungjobold',
292 'koreanitalic' => 'myungjoitalic',
293 'koreanbolditalic' => 'myungjobolditalic',
294 'myungjo' => 'adobemyungjostdmediumacro',
295
296 'japanese' => 'kozminproregularacro',
297 'japanesebold' => 'kozminbold',
298 'japaneseitalic' => 'kozminitalic',
299 'japanesebolditalic' => 'kozminbolditalic',
300 'kozmin' => 'kozminproregularacro',
301 'kozgo' => 'kozgopromediumacro',
302
303 };
304 1 $subs={
305 # Chinese Traditional (ie. Taiwan) Fonts
306 'mingitalic' => {
307 '-alias' => 'adobemingstdlightacro',
308 '+fontname' => ',Italic',
309 },
310 'mingbold' => {
311 '-alias' => 'adobemingstdlightacro',
312 '+fontname' => ',Bold',
313 },
314 'mingbolditalic' => {
315 '-alias' => 'adobemingstdlightacro',
316 '+fontname' => ',BoldItalic',
317 },
318 # Chinese Simplified (ie. Mainland China) Fonts
319 'songitalic' => {
320 '-alias' => 'adobesongstdlightacro',
321 '+fontname' => ',Italic',
322 },
323 'songbold' => {
324 '-alias' => 'adobesongstdlightacro',
325 '+fontname' => ',Bold',
326 },
327 'songbolditalic' => {
328 '-alias' => 'adobesongstdlightacro',
329 '+fontname' => ',BoldItalic',
330 },
331 # Japanese Gothic (ie. sans) Fonts
332 'kozgoitalic' => {
333 '-alias' => 'kozgopromediumacro',
334 '+fontname' => ',Italic',
335 },
336 'kozgobold' => {
337 '-alias' => 'kozgopromediumacro',
338 '+fontname' => ',Bold',
339 },
340 'kozgobolditalic' => {
341 '-alias' => 'kozgopromediumacro',
342 '+fontname' => ',BoldItalic',
343 },
344 # Japanese Mincho (ie. serif) Fonts
345 'kozminitalic' => {
346 '-alias' => 'kozminproregularacro',
347 '+fontname' => ',Italic',
348 },
349 'kozminbold' => {
350 '-alias' => 'kozminproregularacro',
351 '+fontname' => ',Bold',
352 },
353 'kozminbolditalic' => {
354 '-alias' => 'kozminproregularacro',
355 '+fontname' => ',BoldItalic',
356 },
357 # Korean Fonts
358 'myungjoitalic' => {
359 '-alias' => 'adobemyungjostdmediumacro',
360 '+fontname' => ',Italic',
361 },
362 'myungjobold' => {
363 '-alias' => 'adobemyungjostdmediumacro',
364 '+fontname' => ',Bold',
365 },
366 'myungjobolditalic' => {
367 '-alias' => 'adobemyungjostdmediumacro',
368 '+fontname' => ',BoldItalic',
369 },
370 };
371
372 }
373 1 1;
374
375 __END__
« API3/Compat/API2/Resource/XObject/Image/JPEG.pm ↑ Summary API3/Compat/API2/Resource/XObject/Form/BarCode.pm »