Skip to content

Conversation

@innokentiyt
Copy link

For metrics.py:

  • add option to enable inclusion of glyphs bitmap bits in metrics json output;

For generate_pbff.py:

  • draw glyph strokes in output PBFF if its metrics contain bitmap bits;

top,
advance) = struct.unpack(
'<BBbbbxxx', glyph_data[glyph['offset']:glyph['offset'] + 8])
'<BBbbb', glyph_data[glyph['offset']:glyph['offset'] + 5]) # 5 is header size
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very sure about this. For fonts from this repo and here -- https://github.com/MarSoft/pebble-firmware-utils/wiki/Language-Packs -- it only works if we assume the glyph header size is 5 bytes.

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

Successfully merging this pull request may close these issues.

1 participant