diff options
author | Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> | 2019-10-16 16:46:07 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2019-10-16 16:46:07 +0200 |
commit | 4e98431f2ead3e2c79205b7d3f775429668dfe7b (patch) | |
tree | 2c749be639d1de93db27bc2fab7f67efd9b91696 | |
parent | 41e00e3ea3b06749ef61a23229a392df1ab5a046 (diff) |
Fix font metrics broken by an upstream FreeType changearchive/debian/0.12-2
The logic for computing the global ascender, descender and height of OpenType
fonts was slightly adjusted in FreeType 2.10. This change causes regression
tests 22, 23 and 24 to fail.
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=129788
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=129788
Bug-Debian: https://bugs.debian.org/942439
Last-Update: 2019-10-16
Gbp-Pq: Name fix-font-metrics.patch
-rw-r--r-- | t/10metrics_oldstandart.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/10metrics_oldstandart.t b/t/10metrics_oldstandart.t index f71056a..7cd4fc4 100644 --- a/t/10metrics_oldstandart.t +++ b/t/10metrics_oldstandart.t @@ -57,9 +57,9 @@ is($font->units_per_em, 1000, '$face->units_per_em() is right'); my $underline_position = $font->underline_position; ok $underline_position <= -178 || $underline_position >= -198, 'underline position'; is($font->underline_thickness, 40, 'underline thickness'); -is($font->height, 1482, 'text height'); -is($font->ascender, 952, 'ascender'); -is($font->descender, -294, 'descender'); +is($font->height, 1236, 'text height'); +is($font->ascender, 762, 'ascender'); +is($font->descender, -238, 'descender'); subtest "charmaps" => sub { subtest "default charmap" => sub { |