Branch Coverage

blib/lib/Font/TTFMetrics.pm
Criterion Covered Total %
branch 0 166 0.0


line true false branch
157 0 0 unless (@args)
235 0 0 if (defined $$self{'is_symbol'})
253 0 0 if ($id == $$self{'platform'} and $encoding == 0)
270 0 0 if ($@)
296 0 0 if (defined $$self{'table'}{$table_name}) { }
320 0 0 if ($self->is_symbol)
350 0 0 if ($self->is_symbol)
355 0 0 if ($i < @s - 1)
357 0 0 if ($self->is_symbol)
365 0 0 if ($self->is_symbol)
384 0 0 if ($char < 256)
403 0 0 if ($id == $$self{'platform'} and $encoding == $$self{'encoding'})
455 0 0 if ($start_count[$i] <= $char and $end_count[$i] >= $char)
468 0 0 if (not $present) { }
0 0 elsif ($id_range_offset[$index] != 0) { }
540 0 0 if ($id == $PLATFORM_ID and $encoding == $ENCODING_ID)
559 0 0 if ($PLATFORM_ID == '1' and $ENCODING_ID == '0')
595 0 0 if ($PLATFORM_ID == 3)
651 0 0 if ($id_range_offset[$j] != 0) { }
661 0 0 unless (defined $glyph_index[$i])
670 0 0 unless (defined $glyph_index[$i])
683 0 0 if ($self->is_symbol)
710 0 0 $temp[$i + 1] > 32768 ? :
721 0 0 if (@lsb < $end_lsb)
726 0 0 $temp[$i] > 32768 ? :
736 0 0 if ($advanced_width[$index]) { }
742 0 0 if (defined $lsb[$index]) { }
783 0 0 $temp[$i + 1] > 32768 ? :
788 0 0 if (@lsb < $end_lsb)
793 0 0 $temp[$i] > 32768 ? :
797 0 0 defined $lsb[$index] ? :
809 0 0 unless read($fh, $buf, 36) == 36
814 0 0 unless read($fh, $buf, 4 * $num) == 4 * $num
827 0 0 if ($index > $#advanced_width and $self->is_fixed_pitch)
832 0 0 $advanced_width[$index] > 32768 ? :
837 0 0 $a ? :
853 0 0 if (defined $$self{'leading'}) { }
876 0 0 unless read($fh, $buf, 74) == 74
881 0 0 $leading > 32768 ? :
905 0 0 unless read($fh, $buf, 54) == 54
925 0 0 if (defined $$self{'ascent'}) { }
948 0 0 unless read($fh, $buf, 70) == 70
953 0 0 $ascent > 32768 ? :
969 0 0 if (defined $$self{'descent'}) { }
987 0 0 unless read($fh, $buf, 74) == 74
994 0 0 if ($fs & 32) { }
1001 0 0 if ($fs & 1) { }
1008 0 0 if ($fs & 64) { }
1015 0 0 $ascent > 32768 ? :
1016 0 0 $descent > 32768 ? :
1017 0 0 $leading > 32768 ? :
1034 0 0 if (defined $$self{'isbold'}) { }
1056 0 0 if (defined $$self{'isitalic'}) { }
1077 0 0 if (defined $$self{'family'}) { }
1103 0 0 if (defined $$self{'subfamily'}) { }
1121 0 0 if ($$self{'platform'} == '1' and $$self{'encoding'} == '0') { }
1154 0 0 if ($id == $PLATFORM_ID and $encoding == $ENCODING_ID and $language == $LANGUAGE_ID)
1160 0 0 if ($name_id == 0)
1164 0 0 if ($name_id == 1)
1168 0 0 if ($name_id == 2)
1172 0 0 if ($name_id == 3)
1176 0 0 if ($name_id == 4)
1180 0 0 if ($name_id == 5)
1184 0 0 if ($name_id == 6)
1188 0 0 if ($name_id == 7)
1271 0 0 if (defined $char[$j + 1])
1291 0 0 if (defined $$self{'isfixedpitch'}) { }
1311 0 0 if ($format_type == 131072) { }
0 0 elsif ($format_type == 131077) { }
1319 0 0 if ($fixed_pitched)
1329 0 0 if ($highest_glyph_index < $glyph_name_index[$i])
1334 0 0 if ($highest_glyph_index > 257)
1616 0 0 if ($glyph_name_index[$index] > 257) { }
1648 0 0 unless ($$self{'kern'})
1651 0 0 if (exists $$self{'kern'}{$left}{$right}) { }
1665 0 0 unless (defined $self->get_table_address('kern'))
1687 0 0 if ($format == 0 and ($coverage & 1) != 0) { }
1701 0 0 if ($left > 255)
1706 0 0 $kern_data > 32768 ? :
1746 0 0 if ($fh->open("< $path")) { }
1758 0 0 if (defined $$self{'_fh'}) { }
1770 0 0 unless @param
1771 0 0 unless defined $param[0] and $param[0] =~ /^-/