Skip to content

Improve TrueType spec compliance for generated font #123

Open
@bsweeney

Description

@bsweeney

When generating a new font file this library currently writes out a significant number of font table data using the values specified in the original font file. The resulting font may have values that do not conform to expectations per the spec because a number of those values are dependent on the font structure, supported characters, and related glyphs.

This is a tracking issue to help identify and track these issues.

  • global table issues
  • font header
    • Font header invalidated by modification of the number of tables in the font
    • Table checksum does not match expectations
    • Tables in the directory are not sorted by tag.
  • head table
    • subsetting invalidates the font checksum
  • name table
  • cmap table
    • Unicode 0xFFFF (65535) should be present but not mapped
    • Improve character encoding support
    • improve error handling (Improve cmap table (subtable format 4) error handling #127)
    • add support for subtable format 0
    • add support for subtable format 2
    • add support for subtable format 6
    • add support for subtable format 8
    • add support for subtable format 10
    • add support for subtable format 13
    • add support for subtable format 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions