googlefonts / googlefonts/fontc

ufo2ft will always create cmap 4 subtables, even if empty

Open
#1,844 0 comments 0 reactions 0 assignees View on GitHub
crater
Dominant language
Rust
Stars
193
Forks
21
Avg merge
1d 17h
Merged PRs (30d)
65

Description

Whereas we will skip these subtables if they would contain no glyphs.

This shows up with some noto sources, e.g.

```
python3 -m ttx_diff 'https://github.com/notofonts/ottoman-siyaq-numbers?b6cca8ffe6#sources/NotoSerifOttomanSiyaq.glyphs'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the provided ttx_diff command against the Noto Serif Ottoman Siyaq source and inspect the cmap subtables it reports. Trace the relevant font compilation behavior in fontc, then verify that cmap format 4 subtables are omitted when they contain no glyphs while non-empty subtables remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
compilers, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.