Skip to content

COLR v1 support in wezterm is powered by harfbuzz #4382

Closed Answered by rsheeter
wez asked this question in Show and tell
Discussion options

You must be logged in to vote

Cool to see!

Is there a simple way to transform test_glyphs-glyf_colr_1.ttf so that I can assign eg: a, b, c and so on codepoints to those test glyphs?

I believe https://github.com/googlefonts/color-fonts is the source for those test fonts. At a glance (ttx -o - -t cmap fonts/test_glyphs-glyf_colr_1.ttf) it looks like they do have codepoints associated. If you don't like those codepoints perhaps you could ttx the font and edit (or add to, multiple mappings to the same glyph is fine) the cmap to fit your needs?

If you dislike editing via ttx a wee python script should work, akin to https://rsheeter.github.io/font101/#ttfont but modifying font["cmap"].

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@wez
Comment options

@wez
Comment options

@anthrotype
Comment options

@wez
Comment options

@rsheeter
Comment options

Answer selected by khaledhosny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants