Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Source Serif Pro' font causes crash #334

Open
brechtm opened this issue Jun 13, 2022 · 0 comments
Open

'Source Serif Pro' font causes crash #334

brechtm opened this issue Jun 13, 2022 · 0 comments
Labels
bug crash rinohtype aborts due to an uncaught exception

Comments

@brechtm
Copy link
Owner

brechtm commented Jun 13, 2022

    def __init__(self, file, file_offset, subtable_types):
        super().__init__(file, file_offset)
        offsets = array(uint16, self['SubTableCount'])(file)
        if self['LookupFlag']['UseMarkFilteringSet']:
            self['MarkFilteringSet'] = uint16(file)
>       subtable_type = subtable_types[self['LookupType']]
E       KeyError: 8

If rinohtype doesn't yet implement support for an OpenType table format, exit with a more informative message. For substitution tables, we could also ignore them but issue a warning to the user that the particular font will lack (some) glyph substitutions.

@brechtm brechtm added bug crash rinohtype aborts due to an uncaught exception labels Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug crash rinohtype aborts due to an uncaught exception
Projects
None yet
Development

No branches or pull requests

1 participant