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

Sequences of unspecified length #352

Open
wezm opened this issue Apr 28, 2022 · 0 comments
Open

Sequences of unspecified length #352

wezm opened this issue Apr 28, 2022 · 0 comments

Comments

@wezm
Copy link
Contributor

wezm commented Apr 28, 2022

OpenType contains sequences with an unspecified length in a number of places. We need a way to handle these.

  • Simple glyph flags (glyf)
    • The number of flags bytes to read is not specified. Instead bytes need to be read until there's a flag byte for each point. The flags themselves can control what is read after the current byte and may contain a bit indicating that one byte read applies to many points.
  • Glyph names in post
    • There is an array of Pascal strings and an array that maps glyphs to an index in string array. Reading the string array requires known the maximum index in the mapping array, then read that many (+1) Pascal strings from the string data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant