Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0308c999 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Remove vertical metrics assertion

The platform can handle per font vertical metrics, so no longer need
to check the vertical metrisc to be consitent with Roboto metrics.

Bug: 416160754
Test: m fontchain_lint
Flag: build.RELEASE_USE_ROBOTO_MONO_FONT
Change-Id: I40bfbf82d1f073a5dc68ae3c8e75875a2facb104
parent 033a078e
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -817,15 +817,6 @@ def check_vertical_metrics():
                'yMax and yMin of %s do not match expected values.' % (
                record.font,))

        if record.name in ['sans-serif', 'sans-serif-condensed',
                           'serif', 'monospace']:
            font = open_font(record.font)
            assert (font['hhea'].ascent == 1900 and
                    font['hhea'].descent == -500), (
                        'ascent and descent of %s do not match expected '
                        'values.' % (record.font,))


def check_cjk_punctuation():
    cjk_scripts = {'Hans', 'Hant', 'Jpan', 'Kore'}
    cjk_punctuation = range(0x3000, 0x301F + 1)