Font/TTF/OS_2.pm

filter: Statementstmt 27.9% 47 / 168 Branchbran 10.9% 12 / 110 Conditioncond 3.1% 1 / 32 MC/DCmcdc 0.0% 0 / 19 Subroutinesub 61.5% 8 / 13 Podpod 87.5% 7 / 8 totaltotal 21.4% 75 / 350 CC 73 SCAR 65.5
CC
73
Cov
19%
guessRangeBits
1056.0
update
870.0
XML_element
12.0
CRAP 696.0
« Font/TTF/Cmap.pm ↑ Summary Font/TTF/OldMort.pm »
1 package Font::TTF::OS_2;
2  
3 =head1 NAME
4  
5 Font::TTF::OS_2 - the OS/2 table in a TTF font
6  
7 =head1 DESCRIPTION
8  
9 The OS/2 table has two versions and forms, one an extension of the other. This
10 module supports both forms and the switching between them.
11  
12 =head1 INSTANCE VARIABLES
13  
14 No other variables than those in table and those in the standard:
15  
16 Version
17 xAvgCharWidth
18 usWeightClass
19 usWidthClass
20 fsType
21 ySubscriptXSize
22 ySubScriptYSize
23 ySubscriptXOffset
24 ySubscriptYOffset
25 ySuperscriptXSize
26 ySuperscriptYSize
27 ySuperscriptXOffset
28 ySuperscriptYOffset
29 yStrikeoutSize
30 yStrikeoutPosition
31 sFamilyClass
32 bFamilyType
33 bSerifStyle
34 bWeight
35 bProportion
36 bContrast
37 bStrokeVariation
38 bArmStyle
39 bLetterform
40 bMidline
41 bXheight
42 ulUnicodeRange1
43 ulUnicodeRange2
44 ulUnicodeRange3
45 ulUnicodeRange4
46 achVendID
47 fsSelection
48 usFirstCharIndex
49 usLastCharIndex
50 sTypoAscender
51 sTypoDescender
52 sTypoLineGap
53 usWinAscent
54 usWinDescent
55 ulCodePageRange1
56 ulCodePageRange2
57 xHeight
58 CapHeight
59 defaultChar
60 breakChar
61 maxLookups
62  
63 Notice that versions 0, 1, 2 & 3 of the table are supported. Notice also that the
64 Panose variable has been broken down into its elements.
65  
66 =head1 METHODS
67  
68 =cut
69  
70 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
71 1 ▶use vars qw(@ISA @fields @lens @field_info @weights @ranges @codepages);
Subroutine BEGIN: called CC=1 SCAR=0.0
72 1 ▶use Font::TTF::Table;
Subroutine BEGIN: called CC=1 SCAR=0.0
73  
74 1 @ISA = qw(Font::TTF::Table);
75 1 @field_info = (
76 'xAvgCharWidth' => 's',
77 'usWeightClass' => 'S',
78 'usWidthClass' => 'S',
79 'fsType' => 's',
80 'ySubscriptXSize' => 's',
81 'ySubScriptYSize' => 's',
82 'ySubscriptXOffset' => 's',
83 'ySubscriptYOffset' => 's',
84 'ySuperscriptXSize' => 's',
85 'ySuperscriptYSize' => 's',
86 'ySuperscriptXOffset' => 's',
87 'ySuperscriptYOffset' => 's',
88 'yStrikeoutSize' => 's',
89 'yStrikeoutPosition' => 's',
90 'sFamilyClass' => 's',
91 'bFamilyType' => 'C',
92 'bSerifStyle' => 'C',
93 'bWeight' => 'C',
94 'bProportion' => 'C',
95 'bContrast' => 'C',
96 'bStrokeVariation' => 'C',
97 'bArmStyle' => 'C',
98 'bLetterform' => 'C',
99 'bMidline' => 'C',
100 'bXheight' => 'C',
101 'ulUnicodeRange1' => 'L',
102 'ulUnicodeRange2' => 'L',
103 'ulUnicodeRange3' => 'L',
104 'ulUnicodeRange4' => 'L',
105 'achVendID' => 'L',
106 'fsSelection' => 'S',
107 'usFirstCharIndex' => 'S',
108 'usLastCharIndex' => 'S',
109 'sTypoAscender' => 'S',
110 'sTypoDescender' => 's',
111 'sTypoLineGap' => 'S',
112 'usWinAscent' => 'S',
113 'usWinDescent' => 'S',
114 '' => '',
115 'ulCodePageRange1' => 'L',
116 'ulCodePageRange2' => 'L',
117 '' => '',
118 'xHeight' => 's',
119 'CapHeight' => 's',
120 'defaultChar' => 'S',
121 'breakChar' => 'S',
122 'maxLookups' => 's',
123 '' => '', # i.e. v3 is basically same as v2
124 '' => '' # i.e. v4 is structurally identical to v3
125 );
126  
127 1 @weights = qw(64 14 27 35 100 20 14 42 63 3 6 35 20 56 56 17 4 49 56 71 31 10 18 3 18 2 166);
128  
129 1 ▶use Font::TTF::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
130  
131 sub init
132 1 ▶{
Subroutine init: called CC=6 SCAR=18.1
Pod undocumented
133 1 my ($k, $v, $c, $n, $i, $t, $j);
134  
135 1 $n = 0;
136 1 @lens = (76, 84, 94, 94, 94);
137 1 ▶ for ($j = 0; $j < $#field_info; $j += 2)
Branch: 1 branch
BranchTrueFalseTotal
if ($j < $#Font::TTF::OS_2::field_info) 49 1 50
138 {
139 49 ▶ if ($field_info[$j] eq '')
Branch: 1 branch
BranchTrueFalseTotal
if ($Font::TTF::OS_2::field_info[$j] eq "") 4 45 49
140 {
141 4 $n++;
142 4 next;
143 }
144 45 ($k, $v, $c) = TTF_Init_Fields($field_info[$j], $c, $field_info[$j+1]);
145 45 ▶ next unless defined $k && $k ne "";
Branch: 1 branch
BranchTrueFalseTotal
unless defined $k and $k ne "" 0 45 45
Condition33%1/3
defined $k and $k ne ""
!ll&&!rl&&r
0045
MC/DC0%0/2
defined $k and $k ne ""
defined $k $k ne ""
Truth table33%1/3
A and B
A= defined $kB= $k ne ""
ABresult
0X0
100
111
146 45 ▶ for ($i = $n; $i < 5; $i++)
Branch: 1 branch
BranchTrueFalseTotal
if ($i < 5) 213 45 258
147 213 { $fields[$i]{$k} = $v; }
148 }
149 }
150  
151  
152 =head2 $t->read
153  
154 Reads in the various values from disk (see details of OS/2 table)
155  
156 =cut
157  
158 sub read
159 2 ▶{
Subroutine read: called CC=4 SCAR=13.9
Pod documented
160 2 my ($self) = @_;
161 2 my ($dat, $ver);
162  
163 2 ▶ $self->SUPER::read or return $self;
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::read or return $self 2 0 2
164  
165 2 ▶ init unless defined $fields[2]{'xAvgCharWidth'};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $Font::TTF::OS_2::fields[2]{"xAvgCharWidth"} 1 1 2
166 2 $self->{' INFILE'}->read($dat, 2);
167 2 $ver = unpack("n", $dat);
168 2 $self->{'Version'} = $ver;
169 2 ▶ if ($ver < 5)
Branch: 1 branch
BranchTrueFalseTotal
if ($ver < 5) 2 0 2
170 {
171 2 $self->{' INFILE'}->read($dat, $lens[$ver]);
172 2 TTF_Read_Fields($self, $dat, $fields[$ver]);
173 }
174 2 $self;
175 }
176  
177  
178 =head2 $t->out($fh)
179  
180 Writes the table to a file either from memory or by copying.
181  
182 =cut
183  
184 sub out
185 2 ▶{
Subroutine out: called CC=2 SCAR=7.0
Pod documented
186 2 my ($self, $fh) = @_;
187 2 my ($ver);
188  
189 2 ▶ return $self->SUPER::out($fh) unless $self->{' read'};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{" read"} 0 2 2
190  
191 2 $ver = $self->{'Version'};
192 2 $fh->print(pack("n", $ver));
193 2 $fh->print(TTF_Out_Fields($self, $fields[$ver], $lens[$ver]));
194 2 $self;
195 }
196  
197  
198 =head2 $t->XML_element($context, $depth, $key, $value)
199  
200 Tidies up the hex values to output them in hex
201  
202 =cut
203  
204 sub XML_element
205 0 ▶{
Subroutine XML_element: not called CC=3 SCAR=24.8
Pod documented
206 0 my ($self) = shift;
207 0 my ($context, $depth, $key, $value) = @_;
208 0 my ($fh) = $context->{'fh'};
209  
210 0 ▶ if ($key =~ m/^ul(?:Unicode|CodePage)Range\d$/o)
Branch: 2 branches
BranchTrueFalseTotal
if ($key =~ /^ul(?:Unicode|CodePage)Range\d$/o) { } 0 0 0
elsif ($key eq 'achVendID') { } 0 0 0
211 0 { $fh->printf("%s<%s>%08X</%s>\n", $depth, $key, $value, $key); }
212 elsif ($key eq 'achVendID')
213 0 { $fh->printf("%s<%s name='%s'/>\n", $depth, $key, pack('N', $value)); }
214 else
215 0 { return $self->SUPER::XML_element(@_); }
216 0 $self;
217 }
218  
219  
220 =head2 $t->XML_end($context, $tag, %attrs)
221  
222 Now handle them on the way back in
223  
224 =cut
225  
226 sub XML_end
227 0 ▶{
Subroutine XML_end: not called CC=3 SCAR=24.8
Pod documented
228 0 my ($self) = shift;
229 0 my ($context, $tag, %attrs) = @_;
230  
231 0 ▶ if ($tag =~ m/^ul(?:Unicode|CodePage)Range\d$/o)
Branch: 2 branches
BranchTrueFalseTotal
if ($tag =~ /^ul(?:Unicode|CodePage)Range\d$/o) { } 0 0 0
elsif ($tag eq 'achVendID') { } 0 0 0
232 0 { return hex($context->{'text'}); }
233 elsif ($tag eq 'achVendID')
234 0 { return unpack('N', $attrs{'name'}); }
235 else
236 0 { return $self->SUPER::XML_end(@_); }
237 }
238  
239 =head2 $t->minsize()
240  
241 Returns the minimum size this table can be. If it is smaller than this, then the table
242 must be bad and should be deleted or whatever.
243  
244 =cut
245  
246 sub minsize
247 0 ▶{
Subroutine minsize: not called CC=1 SCAR=6.9
Pod documented
248 0 return 78;
249 }
250  
251 =head2 $t->update
252  
253 Updates the OS/2 table by getting information from other sources:
254  
255 Updates the C<firstChar> and C<lastChar> values based on the MS table in the
256 cmap.
257  
258 Updates the sTypoAscender, sTypoDescender & sTypoLineGap to be the same values
259 as Ascender, Descender and Linegap from the hhea table (assuming it is dirty)
260 and also sets usWinAscent to be the sum of Ascender+Linegap and usWinDescent to
261 be the negative of Descender.
262  
263 =cut
264  
265 sub update
266 0 ▶{
Subroutine update: not called CC=29 SCAR=67.7
Pod documented
267 0 my ($self) = @_;
268 0 my ($map, @keys, $table, $i, $avg, $hmtx);
269  
270 0 ▶ return undef unless ($self->SUPER::update);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->SUPER::update 0 0 0
271  
272 0 $self->{' PARENT'}{'cmap'}->update;
273 0 ▶ $map = $self->{' PARENT'}{'cmap'}->find_ms || return undef;
Condition0%0/2
$self->{' PARENT'}{'cmap'}->find_ms || (return undef)
l!l
00
MC/DC0%0/1
$self->{' PARENT'}{'cmap'}->find_ms || (return undef)
$self->{' PARENT'}{'cmap'}->find_ms
Truth table0%0/2
A
A= $self->{' PARENT'}{'cmap'}->find_ms
Aresult
11
00
274 0 $hmtx = $self->{' PARENT'}{'hmtx'}->read;
275  
276 0 @keys = sort {$a <=> $b} grep {$_ < 0x10000} keys %{$map->{'val'}};
277  
278 0 $self->{'usFirstCharIndex'} = $keys[0];
279 0 $self->{'usLastCharIndex'} = $keys[-1];
280  
281 0 $table = $self->{' PARENT'}{'hhea'}->read;
282
283 # try any way we can to get some real numbers passed around!
284 0 ▶ if (($self->{'fsSelection'} & 128) != 0)
Branch: 4 branches
BranchTrueFalseTotal
if (($self->{'fsSelection'} & 128) != 0) { } 0 0 0
elsif ($table->{'Ascender'} != 0 or $table->{'Descender'} != 0) { } 0 0 0
elsif ($self->{'sTypoAscender'} != 0 or $self->{'sTypoDescender'} != 0) { } 0 0 0
elsif ($self->{'usWinAscent'} != 0 or $self->{'usWinDescent'} != 0) { } 0 0 0
285 {
286 # assume the user knows what they are doing and has sensible values already
287 }
288 ▶ elsif ($table->{'Ascender'} != 0 || $table->{'Descender'} != 0)
Condition0%0/3
$table->{"Ascender"} != 0 or $table->{"Descender"} != 0
l!l&&r!l&&!r
000
MC/DC0%0/2
$table->{"Ascender"} != 0 or $table->{"Descender"} != 0
$table->{"Ascender"} != 0 $table->{"Descender"} != 0
Truth table0%0/3
A or B
A= $table->{"Ascender"} != 0B= $table->{"Descender"} != 0
ABresult
1X1
011
000
289 {
290 0 $self->{'sTypoAscender'} = $table->{'Ascender'};
291 0 $self->{'sTypoDescender'} = $table->{'Descender'};
292 0 $self->{'sTypoLineGap'} = $table->{'LineGap'};
293 0 $self->{'usWinAscent'} = $self->{'sTypoAscender'} + $self->{'sTypoLineGap'};
294 0 $self->{'usWinDescent'} = -$self->{'sTypoDescender'};
295 }
296 ▶ elsif ($self->{'sTypoAscender'} != 0 || $self->{'sTypoDescender'} != 0)
Condition0%0/3
$self->{"sTypoAscender"} != 0 or $self->{"sTypoDescender"} != 0
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"sTypoAscender"} != 0 or $self->{"sTypoDescender"} != 0
$self->{"sTypoAscender"} != 0 $self->{"sTypoDescender"} != 0
Truth table0%0/3
A or B
A= $self->{"sTypoAscender"} != 0B= $self->{"sTypoDescender"} != 0
ABresult
1X1
011
000
297 {
298 0 $table->{'Ascender'} = $self->{'sTypoAscender'};
299 0 $table->{'Descender'} = $self->{'sTypoDescender'};
300 0 $table->{'LineGap'} = $self->{'sTypoLineGap'};
301 0 $self->{'usWinAscent'} = $self->{'sTypoAscender'} + $self->{'sTypoLineGap'};
302 0 $self->{'usWinDescent'} = -$self->{'sTypoDescender'};
303 }
304 ▶ elsif ($self->{'usWinAscent'} != 0 || $self->{'usWinDescent'} != 0)
Condition0%0/3
$self->{"usWinAscent"} != 0 or $self->{"usWinDescent"} != 0
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"usWinAscent"} != 0 or $self->{"usWinDescent"} != 0
$self->{"usWinAscent"} != 0 $self->{"usWinDescent"} != 0
Truth table0%0/3
A or B
A= $self->{"usWinAscent"} != 0B= $self->{"usWinDescent"} != 0
ABresult
1X1
011
000
305 {
306 0 $self->{'sTypoAscender'} = $table->{'Ascender'} = $self->{'usWinAscent'};
307 0 $self->{'sTypoDescender'} = $table->{'Descender'} = -$self->{'usWinDescent'};
308 0 $self->{'sTypoLineGap'} = $table->{'LineGap'} = 0;
309 }
310  
311 0 ▶ if ($self->{'Version'} < 3)
Branch: 2 branches
BranchTrueFalseTotal
if ($self->{'Version'} < 3) { } 0 0 0
elsif ($self->{'Version'} > 2) { } 0 0 0
312 {
313 0 ▶ for ($i = 0; $i < 26; $i++)
Branch: 1 branch
BranchTrueFalseTotal
if ($i < 26) 0 0 0
314 0 { $avg += $hmtx->{'advance'}[$map->{'val'}{$i + 0x0061}] * $weights[$i]; }
315 0 $avg += $hmtx->{'advance'}[$map->{'val'}{0x0020}] * $weights[-1];
316 0 $self->{'xAvgCharWidth'} = $avg / 1000;
317 }
318 elsif ($self->{'Version'} > 2)
319 {
320 0 $i = 0; $avg = 0;
321 0 foreach (@{$hmtx->{'advance'}})
322 {
323 0 ▶ next unless ($_);
Branch: 1 branch
BranchTrueFalseTotal
unless $_ 0 0 0
324 0 $i++;
325 0 $avg += $_;
326 }
327 0 ▶ $avg /= $i if ($i);
Branch: 1 branch
BranchTrueFalseTotal
if $i 0 0 0
328 0 $self->{'xAvgCharWidth'} = $avg;
329 }
330  
331 0 $self->{'ulUnicodeRange2'} &= ~0x2000000;
332 0 foreach $i (keys %{$map->{'val'}})
333 {
334 0 ▶ if ($i >= 0x10000)
Branch: 1 branch
BranchTrueFalseTotal
if ($i >= 65536) 0 0 0
335 {
336 0 $self->{'ulUnicodeRange2'} |= 0x2000000;
337 0 last;
338 }
339 }
340  
341 0 ▶ $self->{'Version'} = 1 if (defined $self->{'ulCodePageRange1'} && $self->{'Version'} < 1);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"ulCodePageRange1"} and $self->{"Version"} < 1 0 0 0
Condition0%0/3
defined $self->{"ulCodePageRange1"} and $self->{"Version"} < 1
!ll&&!rl&&r
000
MC/DC0%0/2
defined $self->{"ulCodePageRange1"} and $self->{"Version"} < 1
defined $self->{"ulCodePageRange1"} $self->{"Version"} < 1
Truth table0%0/3
A and B
A= defined $self->{"ulCodePageRange1"}B= $self->{"Version"} < 1
ABresult
0X0
100
111
342 0 ▶ $self->{'Version'} = 2 if (defined $self->{'maxLookups'} && $self->{'Version'} < 2);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"maxLookups"} and $self->{"Version"} < 2 0 0 0
Condition0%0/3
defined $self->{"maxLookups"} and $self->{"Version"} < 2
!ll&&!rl&&r
000
MC/DC0%0/2
defined $self->{"maxLookups"} and $self->{"Version"} < 2
defined $self->{"maxLookups"} $self->{"Version"} < 2
Truth table0%0/3
A and B
A= defined $self->{"maxLookups"}B= $self->{"Version"} < 2
ABresult
0X0
100
111
343
344 0 ▶ if ((exists $self->{' PARENT'}{'GPOS'} && $self->{' PARENT'}{'GPOS'}{' read'}) ||
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->{" PARENT"}{"GPOS"} and $self->{" PARENT"}{"GPOS"}{" read"} or exists $self->{" PARENT"}{"GSUB"} and $self->{" PARENT"}{"GSUB"}{" read"}) 0 0 0
Condition0%0/9
exists $self->{" PARENT"}{"GPOS"} and $self->{" PARENT"}{"GPOS"}{" read"} or exists $self->{" PARENT"}{"GSUB"} and $self->{" PARENT"}{"GSUB"}{" read"}
l!l&&r!l&&!r
000
exists $self->{" PARENT"}{"GPOS"} and $self->{" PARENT"}{"GPOS"}{" read"}
!ll&&!rl&&r
000
exists $self->{" PARENT"}{"GSUB"} and $self->{" PARENT"}{"GSUB"}{" read"}
!ll&&!rl&&r
000
MC/DC0%0/4
exists $self->{" PARENT"}{"GPOS"} and $self->{" PARENT"}{"GPOS"}{" read"} or exists $self->{" PARENT"}{"GSUB"} and $self->{" PARENT"}{"GSUB"}{" read"}
exists $self->{" PARENT"}{"GPOS"} $self->{" PARENT"}{"GPOS"}{" read"} exists $self->{" PARENT"}{"GSUB"} $self->{" PARENT"}{"GSUB"}{" read"}
Truth table0%0/7
A and B or C and D
A= exists $self->{" PARENT"}{"GPOS"}B= $self->{" PARENT"}{"GPOS"}{" read"}C= exists $self->{" PARENT"}{"GSUB"}D= $self->{" PARENT"}{"GSUB"}{" read"}
ABCDresult
11XX1
0X111
10111
0X0X0
0X100
100X0
10100
345 (exists $self->{' PARENT'}{'GSUB'} && $self->{' PARENT'}{'GSUB'}{' read'}))
346 {
347 # one or both of GPOS & GSUB exist and have been read or modified; so update usMaxContexts
348 0 my ($lp, $ls);
349 0 ▶ $lp = $self->{' PARENT'}{'GPOS'}->maxContext if exists $self->{' PARENT'}{'GPOS'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->{" PARENT"}{"GPOS"} 0 0 0
350 0 ▶ $ls = $self->{' PARENT'}{'GSUB'}->maxContext if exists $self->{' PARENT'}{'GSUB'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->{" PARENT"}{"GSUB"} 0 0 0
351 0 ▶ $self->{'maxLookups'} = $lp > $ls ? $lp : $ls;
Branch: 1 branch
BranchTrueFalseTotal
$lp > $ls ? : 0 0 0
352 }
353
354 0 $self;
355 }
356  
357  
358 =head2 $t->guessRangeBits (\%map, [$cp_threshold, [%u_threshold]])
359  
360 Set the ulCodePageRange and ulUnicodeRange fields based on characters actually present in the font.
361  
362 %map is a hash keyed by USV returning non-zero for characters present (e.g. use {'val'}
363 a from Unicode cmap).
364  
365 The two optional parameters are percentage of characters within the codepage or unicode range that need
366 to be present to constitute coverage. A threshold of 0 causes corresponding range bits to
367 be set if any characters are present at all, while a negative value causes the corresponding
368 range bits to be unchanged. Defaults are 50 and 0, respectively.
369  
370 For codepage bits, the threshold is percentage of characters between 0xC0 and 0xFF that need
371 to be present to constitute coverage). For codepages other than 1252,
372 characters (e.g., punctuation) that are defined identically to cp1252 are ignored
373 for the purposes of this percentage calculation. Looks only for SBCS codepages, not DBCS.
374  
375 For Unicode range bits that represent multiple ranges, e.g., bit 29 represents:
376  
377 Latin Extended Additional 1E00-1EFF
378 Latin Extended-C 2C60-2C7F
379 Latin Extended-D A720-A7FF
380  
381 the bit will be set if any of these ranges meet the threshold requirement.
382  
383 =cut
384  
385 sub guessRangeBits
386 0 ▶{
Subroutine guessRangeBits: not called CC=32 SCAR=69.6
Pod documented
387 0 my ($self, $ucmap, $cp_threshold, $u_threshold) = @_;
388 0 ▶ $cp_threshold = 50 unless defined ($cp_threshold);
Branch: 1 branch
BranchTrueFalseTotal
unless defined $cp_threshold 0 0 0
389 0 ▶ $u_threshold = 0 unless defined ($u_threshold);
Branch: 1 branch
BranchTrueFalseTotal
unless defined $u_threshold 0 0 0
390 0 my $j; # index into codepages or ranges
391 my $u; # USV
392  
393 0 ▶ unless (ref($codepages[0]))
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $Font::TTF::OS_2::codepages[0]) 0 0 0
394 {
395 # One-time work to convert range data
396
397 # unpack codepages. But first make sure we have Zlib
398 0 ▶ eval {require Compress::Zlib} || croak("Cannot unpack codepage data Compress::Zlib not available");
Branch: 1 branch
BranchTrueFalseTotal
eval { do { require Compress::Zlib } } or croak("Cannot unpack codepage data Compress::Zlib not available") 0 0 0
399  
400 0 ▶ for ($j = 0; $j <= $#codepages; $j++)
Branch: 1 branch
BranchTrueFalseTotal
if ($j <= $#Font::TTF::OS_2::codepages) 0 0 0
401 {
402 0 ▶ next unless $codepages[$j];
Branch: 1 branch
BranchTrueFalseTotal
unless $Font::TTF::OS_2::codepages[$j] 0 0 0
403 0 $codepages[$j] = [unpack("n*", Compress::Zlib::uncompress(unpack("u", $codepages[$j])))];
404 0 ▶ warn ("Got nothing for codepage # $j\n") if $#{$codepages[$j]} < 128;
Branch: 1 branch
BranchTrueFalseTotal
if $#{$Font::TTF::OS_2::codepages[$j];} < 128 0 0 0
405 }
406
407 # convert Unicode array data to hash
408 0 my @newRanges;
409 0 ▶ for ($j = 0; $j <= $#ranges; $j++)
Branch: 1 branch
BranchTrueFalseTotal
if ($j <= $#Font::TTF::OS_2::ranges) 0 0 0
410 {
411 0 ▶ next unless $ranges[$j][2] =~ m/^([0-9a-f]{4,6})-([0-9a-f]{4,6})$/oi;
Branch: 1 branch
BranchTrueFalseTotal
unless $Font::TTF::OS_2::ranges[$j][2] =~ /^([0-9a-f]{4,6})-([0-9a-f]{4,6})$/io 0 0 0
412 0 my $s = hex ($1);
413 0 my $e = hex ($2);
414 0 ▶ next unless $e > $s;
Branch: 1 branch
BranchTrueFalseTotal
unless $e > $s 0 0 0
415 0 push @newRanges, {start => $s, end => $e, bit => $ranges[$j][0], name => $ranges[$j][1]};
416 }
417 0 @ranges = sort {$a->{'end'} <=> $b->{'end'}} (@newRanges);
418 }
419  
420 0 ▶ if ($cp_threshold >= 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($cp_threshold >= 0) 0 0 0
421 {
422 0 my $cpr; # codepage range vector
423 0 ▶ $cp_threshold = 100 if $cp_threshold > 100;
Branch: 1 branch
BranchTrueFalseTotal
if $cp_threshold > 100 0 0 0
424 0 vec($cpr, 63 ,1) = 0; # Get all 64 bits into the vector
425 0 for $j (0 .. $#codepages) # For each codepage
426 {
427 # Count the number of chars from @range part of codepage that are present in the font
428 0 my $present = 0;
429 0 my $total = 0;
430 0 foreach (0x20 .. 0xFF)
431 {
432 0 $u = $codepages[$j][$_];
433 0 ▶ next if $u == 0xFFFD; # Ignore undefined things in codepage
Branch: 1 branch
BranchTrueFalseTotal
if $u == 65533 0 0 0
434 # For codepage 1252, ignore upper ansi altogether
435 # For other codepages, ignore characters that are same as in 1252.
436 0 ▶ next if $j > 0 ? $u == $codepages[0][$_] : $u > 0x007F;
Branch: 2 branches
BranchTrueFalseTotal
if $j > 0 ? $u == $Font::TTF::OS_2::codepages[0][$_] : $u > 127 0 0 0
$j > 0 ? : 0 0 0
437 0 $total++;
438 0 ▶ $present++ if exists $ucmap->{$u} && $ucmap->{$u} > 0;
Branch: 1 branch
BranchTrueFalseTotal
if exists $ucmap->{$u} and $ucmap->{$u} > 0 0 0 0
Condition0%0/3
exists $ucmap->{$u} and $ucmap->{$u} > 0
!ll&&!rl&&r
000
MC/DC0%0/2
exists $ucmap->{$u} and $ucmap->{$u} > 0
exists $ucmap->{$u} $ucmap->{$u} > 0
Truth table0%0/3
A and B
A= exists $ucmap->{$u}B= $ucmap->{$u} > 0
ABresult
0X0
100
111
439 }
440 #printf STDERR "DBG: Got $present / $total (%0.3f%%) in codepage bit $j\n", $present * 100 / $total;
441 #print STDERR "DBG: setting bit $j\n" if $cp_threshold == 0 ? ($present > 0) : (($present * 100 / $total) >= $cp_threshold);
442 0 ▶ vec($cpr, $j, 1) = 1 if $cp_threshold == 0 ? ($present > 0) : (($present * 100 / $total) >= $cp_threshold);
Branch: 2 branches
BranchTrueFalseTotal
if $cp_threshold == 0 ? $present > 0 : $present * 100 / $total >= $cp_threshold 0 0 0
$cp_threshold == 0 ? : 0 0 0
443 #print STDERR "\n";
444 }
445 0 ($self->{'ulCodePageRange1'}, $self->{'ulCodePageRange2'}) = unpack ('V2', $cpr);
446 }
447  
448 0 ▶ if ($u_threshold >= 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($u_threshold >= 0) 0 0 0
449 {
450 0 my $ucr; # Unicode range vector
451 my @count; # Count of chars present in each range
452 0 ▶ $u_threshold = 100 if $u_threshold > 100;
Branch: 1 branch
BranchTrueFalseTotal
if $u_threshold > 100 0 0 0
453 0 vec($ucr, 127,1) = 0; # Get all 128 bits into the vector
454 0 $j = 0;
455 0 CHAR: for $u (sort {$a <=> $b} keys %{$ucmap})
456 {
457 0 ▶ while ($u > $ranges[$j]{'end'})
Branch: 1 branch
BranchTrueFalseTotal
if ($u > $Font::TTF::OS_2::ranges[$j]{"end"}) 0 0 0
458 {
459 0 ▶ last CHAR if ++$j > $#ranges;
Branch: 1 branch
BranchTrueFalseTotal
if ++$j > $#Font::TTF::OS_2::ranges 0 0 0
460 }
461 0 ▶ next if $u < $ranges[$j]{'start'};
Branch: 1 branch
BranchTrueFalseTotal
if $u < $Font::TTF::OS_2::ranges[$j]{"start"} 0 0 0
462 0 ▶ $count[$j]++ if $ucmap->{$u};
Branch: 1 branch
BranchTrueFalseTotal
if $ucmap->{$u} 0 0 0
463 }
464 0 foreach $j (0 .. $#ranges)
465 {
466 vec($ucr, $ranges[$j]{'bit'}, 1) = 1 if $u_threshold == 0 ?
467 ($count[$j] > 0) :
468 0 ▶ (($count[$j] * 100 / ($ranges[$j]{'end'} - $ranges[$j]{'start'} + 1)) >= $u_threshold);
Branch: 2 branches
BranchTrueFalseTotal
if $u_threshold == 0 ? $count[$j] > 0 : $count[$j] * 100 / ($Font::TTF::OS_2::ranges[$j]{"end"} - $Font::TTF::OS_2::ranges[$j]{"start"} + 1) >= $u_threshold 0 0 0
$u_threshold == 0 ? : 0 0 0
469 }
470 0 ($self->{'ulUnicodeRange1'},$self->{'ulUnicodeRange2'},$self->{'ulUnicodeRange3'},$self->{'ulUnicodeRange4'}) =
471 unpack ('V4', $ucr);
472 }
473 }
474  
475 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=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Y'O*(>1XK
498 M0$TL*,M:4;:&5,TB3V3Q5&X%LJ00EF7CF1P\YX7"%*$\%?"25ZK@-6]4JV[>
499 MJY>/K*B53ZKA,U_DQU=Y%,0WA?)==GXHEI_\4K@BE:]"?O-'E?QE577J84U]
500 +_,.K-NO=?_3I:`(`
501 EOT
502  
503 <<'EOT', # Bit 2: cp1251
504 M>)P%P=52%5``0-$-;!KISG,OW=W=#=(IV-W=_H+^@0^.CB,Z^J`^^&V.K@7$
505 M$$L<$D\"B2213`JII'&*=#+()(ML<L@ECWP***2(8DHHI8QR*@A$B%))%=74
506 M4$L=]3302!/-M-!*&^UTT$D7W?302Q_]###($,.,,,H8XTPPR133S##+'/,L
507 ML,@2RZRPRFG66&>#3;;89H==]MCG@$/.<,0Q9SG'>2YPD4M<Y@I7N<9U;G"3
508 M6]SF#G>YQWT>\)!'/.8)3WG&<U[PDE>\YHVQQH5B-T)YJ`DA1,)):#,Y])MB
509 MFJEFN!X*0U$H#64A&G)"[K^_D:A[8<!]#SWPF/>F>V02'WS+1SX9PV?E"R=\
510 MY9N)?.>'"6[[CI_\XK=KD7PW^>.N\6ZY8Z999IMCKGGF6V"A119;8JEEEEMA
511 M,&+42JNLML9:ZZRWP4:;;+;%5MMLM\-.N^RVQU[[['?`08<<=L11QQQWPDFG
512 3G';&6>><=\%%EUQVQ=7_+3E$L0``
513 EOT
514  
515 <<'EOT', # Bit 3: cp1253
516 M>)PUB><WEG$`AB_=[9+,$/J];])&2QE-39+VWKN4T2(-7^A4I]-`DI:.G=<.
517 M12)-H_ZCYSR]7YS[7!^NZP8\&(48S1C&,H[Q3&`BDYB,)U/P8BK>^."+'_X$
518 M,(U`@@AF.B&$$L8,#`Z<S"2<640PFSG,91[S6<!"(HDBFD4L9@E+648,RUE!
519 M+''$D\!*5K&:-:QE'8FL9P,;V<1FMI!$,EM)81NI;&<'.]G%;O:PEWWLYP`'
520 M.<1ACG"48QSG!"<YQ6G.<)9SG.<"%TGC$I=))X-,LKC"5:YQG1MDD\--<KG%
521 M;>YPESSCLBT3[%%HPDR$,<;AMF@WL;8U,A-H@DR("35.XVO\;,OA=+>XD9=R
522 M%>@>%512134UU%+GKO6X:*#1^--,"ZVT*9]V.NC4?3W00[KUB!X]UA,]U3,5
523 MJDC%>JX2O5"I7JI,K_1:;_16[U2N][:E"E6J2M6J4:WJ]$'U<JE!C6I2LUK4
524 MJC9]5+LZU*E/^JPN=>N+>O15O>K3-_7KNW[HIW[IM_YH0(,:TK#^ZI]M_0=K
525 #AH5\
526 EOT
527  
528 <<'EOT', # Bit 4: cp1254
529 M>)PER6-ST'$``.#GOVPLM]9OJY9KR\NV[99M^SOT";)MV[S,NVQ=]JWKNN?E
530 M@TB,##+*)+,LLLHFNQQRRB6W//+*)[]8!1142&%%%%5,<7%*B%=2D"!1*:65
531 MD:2L<LJKH*)**JNBJF0IJJFNAIIJJ:V.5'754U\##3726!---=-<"RVUTEH;
532 M;;737@<===)9%UUUTUT//?726Q]]]=/?``,-DF:P(88:9K@11AIEM#'&&F>\
533 M"2::9+(IIIIFNAEFFF6V.>::9[X%%H;UZ7]"L6A1B`])(82$F),A.4H+J5'7
534 M]#__A2*A:(@+)4)BB`T%8NXE)$:#0]VHV[^+9EELB:6666Z%E599;8VUUEEO
535 M@XTVV6R+K;;9;H>==MEMC[WVV>^`@PXY[(BCCCGNA)-..>V,L\XY[X*++D7Q
536 M+KOBJFNNN^&F6VZ[XZY[47(TT'T///3(8T\\]<QS+[STRFMOO/7.^ZBD#S[Z
537 6Y+,OOOKFNQ]^^N5WE!(-DOX7C-.`8```
538 EOT
539  
540 <<'EOT', # Bit 5: cp1255
541 M>)Q%C]=7#@`<AI\^7F04"FV_[T-#1G9EE%U66UG9>X;L\3_X"Z)3*4E[G)9Q
542 MCFLR(MDK71'GN/K.)\[I.,_=\]X\+^"%@T$,1@QA*,/P9C@C&,DH?/!E-&,8
543 MBQ_^C&,\$P@@D""""2&4,"9B.'$QB<E,(9P((HEB*M%,8SHSF$D,LY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%&``1-^L%`M86(1=FM\N106E]R)2;6`7%"P@%CI([_X5HT8E8N]1
568 M.5GBV2@22;P("6<C>G"S?H<W\S(#"`>K"""0(()9S1K6LHX00EG/!C:RB3"<
569 MA+.9"")QX2:*:&*()8XM&#QXB2>!1)+8RC:VDTP*.]A)*FFDDT$F66230RYY
570 MY%-`(4444\(N2ME-&>544$D5U>QA+_O8SP%JJ.4@ASC,$8YRC..<H(YZ3G**
571 M!AHYS1G.<HXFFCE/"Q>XR"4NTTH;[73021?=]-#+%?KH9X!!AAAFA%'&&&>"
572 M2::X:F;\/A-EB3-)QAB/M71+@=_''<='7EIW&;>),;'&:YPFW._S>.U6:/\'
573 MCN\VKUFN<X.;MF]QFV],JXZ[S'"/^WS@(8]XS!.>\HSGO.`OKU3/:][PEEF6
574 M%*!4H2#>\5XNA2F$3QI5A+S*5;**U*0*5?%9-7SA*W/J4YD:U,Z"QC7)#P4J
575 M35(P/UF46TZ%LJPQ12I>>4I1L9I5J6I^J9;?K/!'_2I7HSKXIPE-.>;_`YNL
576 ";XP`
577 EOT
578  
579 <<'EOT', # Bit 8: cp1258
580 M>)PER>5.EF$`@.'KY;,[,%#1!U3L[NYNL+N[$_L</`*PN[MUBC5U3F>R&;.=
581 M.J>S&>K<_>^Z$8D3DT=>^>170$&%%%9$4<445T))I906KXRRRBDO004559*H
582 MLBJ"),FJJJ:Z%#745$MM==153WT---1(8TTTU4QS+;342FMMM-5.>QUTU$EG
583 M773537<]]-1+;WWTU4]_`PPT2*HT@PTQU###C3#2**.-,=8XXTTPT22333'5
584 M--/-,-,LL\TQUSSS+;#0(HLML=0RZ99;8:555EMC;=B9FQ,J1.M"Y9`20DB*
585 MRPH-_TJK*#4WYW^A?$@(E4)B2`ZE0WQ<=E+R7VL=I?U[4;H,F=;;8*---MMB
586 MJVVVVV&G77;;8Z]]]CO@H$,..^*H8XX[X:133COCK'/.1W$NN"C+)9==<=6U
587 M&-?=<#,JX5:LH-ON1!GNNN>^!QYZ)#O:$XMY[(FGGD4QS[WPTBNOO?'6NUCD
588 @O0\^1B5]BE7UV9<HTU???/?#3[_\CO:&'7+_`."G?R``
589 EOT
590  
591 undef, # Bit 9: Reserved
592 undef, # Bit 10: Reserved
593 undef, # Bit 11: Reserved
594 undef, # Bit 12: Reserved
595 undef, # Bit 13: Reserved
596 undef, # Bit 14: Reserved
597 undef, # Bit 15: Reserved
598  
599 <<'EOT', # Bit 16: cp874
600 M>)Q=C=52&U``!1?W11(@@00N`8*[4\'=W>KN[OHK_8#^8J=]Z.0!9E_.S,Z<
601 M!;+()H=<\LBG@$****:$4LJ0<BJHI(H(4:JIH988<>JH)T&2!AH)-)&BF19:
602 M2=-&.QUTTD4W/?321S\###+$,".,,L8X$TQRB<M<X2I33#/#+'/,L\`B2RRS
603 MPBIKK+/!)EMLL\,N>^QSP"%'''/"*6=<XSHWN,DM;G.'N]SC/@]XR",>\X2G
604 M/.,Y+WC)*U[SAK>\XST?^,@G/O.%KWSC.S_X&7[__?.?D,ZL\X18B(=$2(94
605 MB(3H1<LOL\PVQUSSS+?`0HLLML12R]1R*ZRTRHA1JZVQUIAQZZPW8=(&&PTV
606 MF;+9%EM-VV:['7;:9;<]]MIGOP,..N2P(XXZYK@33F;J3CGMC+/..>^"BRZY
607 @[(JKKKGNAIMNN>V.N^ZY[X&''GGLB:>>91[^`:-3=+0`
608 EOT
609  
610 undef, # Bit 17: Reserved
611 undef, # Bit 18: Reserved
612 undef, # Bit 19: Reserved
613 undef, # Bit 20: Reserved
614 undef, # Bit 21: Reserved
615 undef, # Bit 22: Reserved
616 undef, # Bit 23: Reserved
617 undef, # Bit 24: Reserved
618 undef, # Bit 25: Reserved
619 undef, # Bit 26: Reserved
620 undef, # Bit 27: Reserved
621 undef, # Bit 28: Reserved
622 undef, # Bit 29: Reserved
623 undef, # Bit 30: Reserved
624 undef, # Bit 31: Reserved
625 undef, # Bit 32: Reserved
626 undef, # Bit 33: Reserved
627 undef, # Bit 34: Reserved
628 undef, # Bit 35: Reserved
629 undef, # Bit 36: Reserved
630 undef, # Bit 37: Reserved
631 undef, # Bit 38: Reserved
632 undef, # Bit 39: Reserved
633 undef, # Bit 40: Reserved
634 undef, # Bit 41: Reserved
635 undef, # Bit 42: Reserved
636 undef, # Bit 43: Reserved
637 undef, # Bit 44: Reserved
638 undef, # Bit 45: Reserved
639 undef, # Bit 46: Reserved
640 undef, # Bit 47: Reserved
641  
642 <<'EOT', # Bit 48: cp869
643 M>)Q%R>=7#0`<Q^&/OLB(0G%3N.K^LK*S0U;#+$5$1$141E967I03IZ-QB13=
644 M3EHJ&@C)WN(_ZN0<;YSGY0,,P@LQF"$,Q9MA#&<$(_%A%*/QQ8\QC&4<_@0P
645 MG@DX"&0B000SB<E,P<E40@C%A1'&-*8S@YG,(IS9S&$N\YC/`A82P2(6LX2E
646 M+&,Y*XAD):M8311K6,LZUK.!:&*()8Z-;&(S6]C*-N))8#N))+&#G22SB]VD
647 ML(>]I+*/_:1Q@(.D<XC#9'"$HV1RC.-DD4T.)SC)*4Z3RQG.<H[S7""/BUSB
648 M,E>X2OY`_W^Z/M!/-ZTT.!W.0!4Y`W1#-_58Q?_VEEIH5@F==*F5.K7IB9[J
649 MITK5I]\J4[G<NJT[JM!=>G5/E;308V56;F[S,I?NJTK5>F#IEF#)EJJ'JC$_
650 M\[<("[=@PR+E4:VE6))E6H:E6;QEJ4Z/5*\&-:I)S>I0I[K,83Y69`5ZIN=V
651 M32_4K9=ZI=?JT1OUZJW>Z;T^Z),^ZK,*:*-#7_15WVC4=Q723I-^Z)?:]<<\
652 '>/X"GB5Z;@``
653 EOT
654  
655 <<'EOT', # Bit 49: cp866
656 M>)P%P45#$P``AN$7_!0#<=088]381XYN&-W=#:,;N]N#!P\>C#_`P1_@S;_G
657 M\P`II'(#<9-;I'&;.]SE'NG<)X,'!,@DBVQRR"5('B'R"5-`A$****:$4J*4
658 M$<.44T$E55130YQ:ZJBG@4:::*:%5MIHIX-.NN@F00^]]-'/`(,,,<P(HXPQ
659 M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K_`R9#<9@`
743 EOT
744  
745 <<'EOT', # Bit 56: cp857
746 M>)P-RE-W%W```-#[7[:6E_O%Y67;7BUKM5HMVSWTT&OU!;)MVSR9YV3K9)_:
747 MZST7$5'22"N=]#+(*)/,LL@JF^QRR"F7W/*(EE<^^1504"&%Q2BBJ&***Z&D
748 M4DH+RBBKG/(JJ"A6)955454UU=40IZ9::JNCKGKJ:Z"A1AIKHJEFFFNAI59:
749 M:Z.M=MKKH*-..NNBJVZZB]=#3PEZZ:V/OOKI;X"!!AELB$1##9-DN!&2C31*
750 MBM'&&&N<\2:8:)+)IIAJFNEFF&F6V>:8Z[0_7GGLJ8>>>>&U-U[ZX'VDFA-.
751 M.NNY4[[XYI/??D:JNNF^'Y:['1D0&>B1=S[[Y:,KD:*18@[;9(.##EAJO?UA
752 M85@4%H>H4-I1QQRQ-B2&KB$A]+?,RI`S1(>X$!MB@M#`$\=#GQ`?DD-2&!2Z
753 MA!0K[+/..>>=^??719=<#@5"UK`@S+?*A3#/-0]<=]57-^Q,/;?<=<\=;_VS
754 <V0X;;4W50W99[;L]MEACM[VVVQ:66/(?I8M\J@``
755 EOT
756  
757 <<'EOT', # Bit 57: cp855
758 M>)P%P<52$``40-$+7$`%*>D&>3327=)("4A(HU@H=K<+%V[5'V#AC`O'+_#G
759 M/`=(()$D))D44CG#6<Z11CKGR2"3+++)X0*YY)%/`84444P)I9113@655%'-
760 M16H(:JFCG@8:::*9%B[12AOM=-!)%]WTT$L?_0PPR!##C##*9<889X))IIAF
761 MAEFN,,<\"RRRQ%6666&5:ZRQS@:;7&>+;7;898]]#CCD!C<YXA:WN<-=[G',
762 M?1YPPD,>\9@G/.49SWG!2U[QFC>\Y1WO^<!'/O'951.]9I(K)KBFKIOLABEN
763 MFNIUS[CE6;<]YXYI[IKNOAD>F.F2EYRST3:S;#?;:6OM,M=N\YRTQDXO\(=_
764 M\3U^Q,](C!JG#/LLC*-8B<W8L]^BR(K<Z(KF*`UBR`&+8SO6XCCNQ&$LQ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!*V<Y!1MG.8,[73021=G.<=Y+G"1;GJXQ&6N
788 M<)5K]-)'/P,,,L2P8OG'3XEORN*[XE2N%#4HI#SU\H:WO.<'[U3#'_FXK;":
789 M^,@7YIGD,Y^8$LKEE_HUH#XG@VGN\H#[O.*ERKC'"[MIMVS<HBQ;T7+)K31K
790 MM3H+6;,*%+$D2[4BRS>O87YUJ\/"5F_MUF81J[4N#2I&"?(H785J48\Z-61N
791 M<]F8C=IUNV$C?."KJE7!;^9XHDH5JT2E\BNH9`4<#S,\<KR\YBEW^.MD\M#G
792 .X1G/F>6Q33#Q'V@>75\`
793 EOT
794  
795 <<'EOT', # Bit 60: cp737
796 M>)P%P65W#@``AN';'FT8AFV&>>V1T]/3-;WN[M*=\\%QQMG!-IVOH]LFIKOK
797 M[_CJNH`.A"`ZTHG.=*$KW>A.#T+I22]Z$T8?^M*/</HS@(%$$$D4@XAF,$,8
798 M2@S#"#"<6,P(1C**T8QA+'&,8SP3F,@D)C.%>*8RC>G,8":SF$T"<YC+/.:S
799 M@(4L8C%+6,HR$EG."E:RBM6L82U)))-"*FFDDT$F66230RYYY%-`(4444T(I
800 M991302555%-#+76L8ST;V,@F-K.%K6QC.SO8R2YVLX>][&,_]6I2LUIT0B=U
801 M2J=U1F=U3N=U01=U29<5U!5=U35=UPW=U"W=5JO:]%A/]%3/U*[G>J&7>J77
802 M>J.W>J?W^J!/^JC/^J*O^J;O;G*S6QSB6!>[Q!E.=ZF3G>E\YSG780YWO.,<
803 M;9S@`A<ZQVFN=H6+G.0Z5[K*92YWMK.<XE37NL81#G6##[K1QWU`/W1/]_5`
804 M/_50O_5'O_17A]2@PSJB1AW5,5H#Y8$RW=%=_@42>12(I#T0%5-/FX,$_P-K
805 #(&Q0
806 EOT
807  
808 undef, # Bit 61: cp708 (unknown)
809  
810 <<'EOT', # Bit 62: cp850
811 M>)P%P5-C$&```,#;<BW;VI>UC&5[JV6WW++=0P^]5G\@V[9MV[;M.T2(E$QR
812 M*:242FIII)5.E/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CJMUWI<3E<4HS:1
832 1^S:41S;,V<`#M=+Z'T-Z<84`
833 EOT
834  
835 );
836  
837 # The following taken directly from OT Spec:
838  
839 1 @ranges = (
840 [ 0, "Basic Latin", "0000-007F" ],
841 [ 1, "Latin-1 Supplement", "0080-00FF" ],
842 [ 2, "Latin Extended-A", "0100-017F" ],
843 [ 3, "Latin Extended-B", "0180-024F" ],
844 [ 4, "IPA Extensions", "0250-02AF" ],
845 [ 4, "Phonetic Extensions", "1D00-1D7F" ],
846 [ 4, "Phonetic Extensions Supplement", "1D80-1DBF" ],
847 [ 5, "Spacing Modifier Letters", "02B0-02FF" ],
848 [ 5, "Modifier Tone Letters", "A700-A71F" ],
849 [ 6, "Combining Diacritical Marks", "0300-036F" ],
850 [ 6, "Combining Diacritical Marks Supplement", "1DC0-1DFF" ],
851 [ 7, "Greek and Coptic", "0370-03FF" ],
852 [ 8, "Coptic", "2C80-2CFF" ],
853 [ 9, "Cyrillic", "0400-04FF" ],
854 [ 9, "Cyrillic Supplement", "0500-052F" ],
855 [ 9, "Cyrillic Extended-A", "2DE0-2DFF" ],
856 [ 9, "Cyrillic Extended-B", "A640-A69F" ],
857 [ 10, "Armenian", "0530-058F" ],
858 [ 11, "Hebrew", "0590-05FF" ],
859 [ 12, "Vai", "A500-A63F" ],
860 [ 13, "Arabic", "0600-06FF" ],
861 [ 13, "Arabic Supplement", "0750-077F" ],
862 [ 14, "NKo", "07C0-07FF" ],
863 [ 15, "Devanagari", "0900-097F" ],
864 [ 16, "Bengali", "0980-09FF" ],
865 [ 17, "Gurmukhi", "0A00-0A7F" ],
866 [ 18, "Gujarati", "0A80-0AFF" ],
867 [ 19, "Oriya", "0B00-0B7F" ],
868 [ 20, "Tamil", "0B80-0BFF" ],
869 [ 21, "Telugu", "0C00-0C7F" ],
870 [ 22, "Kannada", "0C80-0CFF" ],
871 [ 23, "Malayalam", "0D00-0D7F" ],
872 [ 24, "Thai", "0E00-0E7F" ],
873 [ 25, "Lao", "0E80-0EFF" ],
874 [ 26, "Georgian", "10A0-10FF" ],
875 [ 26, "Georgian Supplement", "2D00-2D2F" ],
876 [ 27, "Balinese", "1B00-1B7F" ],
877 [ 28, "Hangul Jamo", "1100-11FF" ],
878 [ 29, "Latin Extended Additional", "1E00-1EFF" ],
879 [ 29, "Latin Extended-C", "2C60-2C7F" ],
880 [ 29, "Latin Extended-D", "A720-A7FF" ],
881 [ 30, "Greek Extended", "1F00-1FFF" ],
882 [ 31, "General Punctuation", "2000-206F" ],
883 [ 31, "Supplemental Punctuation", "2E00-2E7F" ],
884 [ 32, "Superscripts And Subscripts", "2070-209F" ],
885 [ 33, "Currency Symbols", "20A0-20CF" ],
886 [ 34, "Combining Diacritical Marks For Symbols", "20D0-20FF" ],
887 [ 35, "Letterlike Symbols", "2100-214F" ],
888 [ 36, "Number Forms", "2150-218F" ],
889 [ 37, "Arrows", "2190-21FF" ],
890 [ 37, "Supplemental Arrows-A", "27F0-27FF" ],
891 [ 37, "Supplemental Arrows-B", "2900-297F" ],
892 [ 37, "Miscellaneous Symbols and Arrows", "2B00-2BFF" ],
893 [ 38, "Mathematical Operators", "2200-22FF" ],
894 [ 38, "Supplemental Mathematical Operators", "2A00-2AFF" ],
895 [ 38, "Miscellaneous Mathematical Symbols-A", "27C0-27EF" ],
896 [ 38, "Miscellaneous Mathematical Symbols-B", "2980-29FF" ],
897 [ 39, "Miscellaneous Technical", "2300-23FF" ],
898 [ 40, "Control Pictures", "2400-243F" ],
899 [ 41, "Optical Character Recognition", "2440-245F" ],
900 [ 42, "Enclosed Alphanumerics", "2460-24FF" ],
901 [ 43, "Box Drawing", "2500-257F" ],
902 [ 44, "Block Elements", "2580-259F" ],
903 [ 45, "Geometric Shapes", "25A0-25FF" ],
904 [ 46, "Miscellaneous Symbols", "2600-26FF" ],
905 [ 47, "Dingbats", "2700-27BF" ],
906 [ 48, "CJK Symbols And Punctuation", "3000-303F" ],
907 [ 49, "Hiragana", "3040-309F" ],
908 [ 50, "Katakana", "30A0-30FF" ],
909 [ 50, "Katakana Phonetic Extensions", "31F0-31FF" ],
910 [ 51, "Bopomofo", "3100-312F" ],
911 [ 51, "Bopomofo Extended", "31A0-31BF" ],
912 [ 52, "Hangul Compatibility Jamo", "3130-318F" ],
913 [ 53, "Phags-pa", "A840-A87F" ],
914 [ 54, "Enclosed CJK Letters And Months", "3200-32FF" ],
915 [ 55, "CJK Compatibility", "3300-33FF" ],
916 [ 56, "Hangul Syllables", "AC00-D7AF" ],
917 [ 57, "Non-Plane 0 * ", "D800-DFFF" ],
918 [ 58, "Phoenician", "10900-1091F" ],
919 [ 59, "CJK Unified Ideographs", "4E00-9FFF" ],
920 [ 59, "CJK Radicals Supplement", "2E80-2EFF" ],
921 [ 59, "Kangxi Radicals", "2F00-2FDF" ],
922 [ 59, "Ideographic Description Characters", "2FF0-2FFF" ],
923 [ 59, "CJK Unified Ideographs Extension A", "3400-4DBF" ],
924 [ 59, "CJK Unified Ideographs Extension B", "20000-2A6DF" ],
925 [ 59, "Kanbun", "3190-319F" ],
926 [ 60, "Private Use Area (plane 0)", "E000-F8FF" ],
927 [ 61, "CJK Strokes", "31C0-31EF" ],
928 [ 61, "CJK Compatibility Ideographs", "F900-FAFF" ],
929 [ 61, "CJK Compatibility Ideographs Supplement", "2F800-2FA1F" ],
930 [ 62, "Alphabetic Presentation Forms", "FB00-FB4F" ],
931 [ 63, "Arabic Presentation Forms-A", "FB50-FDFF" ],
932 [ 64, "Combining Half Marks", "FE20-FE2F" ],
933 [ 65, "Vertical Forms", "FE10-FE1F" ],
934 [ 65, "CJK Compatibility Forms", "FE30-FE4F" ],
935 [ 66, "Small Form Variants", "FE50-FE6F" ],
936 [ 67, "Arabic Presentation Forms-B", "FE70-FEFF" ],
937 [ 68, "Halfwidth And Fullwidth Forms", "FF00-FFEF" ],
938 [ 69, "Specials", "FFF0-FFFF" ],
939 [ 70, "Tibetan", "0F00-0FFF" ],
940 [ 71, "Syriac", "0700-074F" ],
941 [ 72, "Thaana", "0780-07BF" ],
942 [ 73, "Sinhala", "0D80-0DFF" ],
943 [ 74, "Myanmar", "1000-109F" ],
944 [ 75, "Ethiopic", "1200-137F" ],
945 [ 75, "Ethiopic Supplement", "1380-139F" ],
946 [ 75, "Ethiopic Extended", "2D80-2DDF" ],
947 [ 76, "Cherokee", "13A0-13FF" ],
948 [ 77, "Unified Canadian Aboriginal Syllabics", "1400-167F" ],
949 [ 78, "Ogham", "1680-169F" ],
950 [ 79, "Runic", "16A0-16FF" ],
951 [ 80, "Khmer", "1780-17FF" ],
952 [ 80, "Khmer Symbols", "19E0-19FF" ],
953 [ 81, "Mongolian", "1800-18AF" ],
954 [ 82, "Braille Patterns", "2800-28FF" ],
955 [ 83, "Yi Syllables", "A000-A48F" ],
956 [ 83, "Yi Radicals", "A490-A4CF" ],
957 [ 84, "Tagalog", "1700-171F" ],
958 [ 85, "Hanunoo", "1720-173F" ],
959 [ 85, "Buhid", "1740-175F" ],
960 [ 85, "Tagbanwa", "1760-177F" ],
961 [ 85, "Old Italic", "10300-1032F" ],
962 [ 86, "Gothic", "10330-1034F" ],
963 [ 87, "Deseret", "10400-1044F" ],
964 [ 88, "Byzantine Musical Symbols", "1D000-1D0FF" ],
965 [ 88, "Musical Symbols", "1D100-1D1FF" ],
966 [ 88, "Ancient Greek Musical Notation", "1D200-1D24F" ],
967 [ 89, "Mathematical Alphanumeric Symbols", "1D400-1D7FF" ],
968 [ 90, "Private Use (plane 15)", "FF000-FFFFD" ],
969 [ 90, "Private Use (plane 16)", "100000-10FFFD" ],
970 [ 91, "Variation Selectors", "FE00-FE0F" ],
971 [ 91, "Variation Selectors Supplement", "E0100-E01EF" ],
972 [ 92, "Tags", "E0000-E007F" ],
973 [ 93, "Limbu", "1900-194F" ],
974 [ 94, "Tai Le", "1950-197F" ],
975 [ 95, "New Tai Lue", "1980-19DF" ],
976 [ 96, "Buginese", "1A00-1A1F" ],
977 [ 97, "Glagolitic", "2C00-2C5F" ],
978 [ 98, "Tifinagh", "2D30-2D7F" ],
979 [ 99, "Yijing Hexagram Symbols", "4DC0-4DFF" ],
980 [ 100, "Syloti Nagri", "A800-A82F" ],
981 [ 101, "Linear B Syllabary", "10000-1007F" ],
982 [ 101, "Linear B Ideograms", "10080-100FF" ],
983 [ 101, "Aegean Numbers", "10100-1013F" ],
984 [ 102, "Ancient Greek Numbers", "10140-1018F" ],
985 [ 103, "Ugaritic", "10380-1039F" ],
986 [ 104, "Old Persian", "103A0-103DF" ],
987 [ 105, "Shavian", "10450-1047F" ],
988 [ 106, "Osmanya", "10480-104AF" ],
989 [ 107, "Cypriot Syllabary", "10800-1083F" ],
990 [ 108, "Kharoshthi", "10A00-10A5F" ],
991 [ 109, "Tai Xuan Jing Symbols", "1D300-1D35F" ],
992 [ 110, "Cuneiform", "12000-123FF" ],
993 [ 110, "Cuneiform Numbers and Punctuation", "12400-1247F" ],
994 [ 111, "Counting Rod Numerals", "1D360-1D37F" ],
995 [ 112, "Sundanese", "1B80-1BBF" ],
996 [ 113, "Lepcha", "1C00-1C4F" ],
997 [ 114, "Ol Chiki", "1C50-1C7F" ],
998 [ 115, "Saurashtra", "A880-A8DF" ],
999 [ 116, "Kayah Li", "A900-A92F" ],
1000 [ 117, "Rejang", "A930-A95F" ],
1001 [ 118, "Cham", "AA00-AA5F" ],
1002 [ 119, "Ancient Symbols", "10190-101CF" ],
1003 [ 120, "Phaistos Disc", "101D0-101FF" ],
1004 [ 121, "Carian", "102A0-102DF" ],
1005 [ 121, "Lycian", "10280-1029F" ],
1006 [ 121, "Lydian", "10920-1093F" ],
1007 [ 122, "Domino Tiles", "1F030-1F09F" ],
1008 [ 122, "Mahjong Tiles", "1F000-1F02F" ],
1009 [ 123-127, "Reserved", "" ],
1010 );
1011  
1012 }
1013  
1014  
1015 1 1;
1016  
1017 =head1 BUGS
1018  
1019 None known
1020  
1021 =head1 AUTHOR
1022  
1023 Martin Hosken L<http://scripts.sil.org/FontUtils>.
1024  
1025  
1026 =head1 LICENSING
1027  
1028 Copyright (c) 1998-2016, SIL International (http://www.sil.org)
1029  
1030 This module is released under the terms of the Artistic License 2.0.
1031 For details, see the full text of the license in the file LICENSE.
1032  
1033  
1034  
1035 =cut
1036  
« Font/TTF/Cmap.pm ↑ Summary Font/TTF/OldMort.pm »