Skip to content

Add NotoColorEmoji-Regular-CBDT.subset.ttf#32

Merged
laurmaedje merged 1 commit into
mainfrom
color-emoji-cbdt-subset
Jun 9, 2026
Merged

Add NotoColorEmoji-Regular-CBDT.subset.ttf#32
laurmaedje merged 1 commit into
mainfrom
color-emoji-cbdt-subset

Conversation

@saecki

@saecki saecki commented Jun 5, 2026

Copy link
Copy Markdown
Member

required by typst/typst#8440

Script used to rename the font:

from fontTools.ttLib import TTFont
f = TTFont("input.ttf")
name = f['name']
def setName(nameID, string):
    print(name.names[nameID])
    name.names[nameID].string = string.encode('utf-16-be')
    print(name.names[nameID])
setName(1, "Noto Color Emoji CBDT Subset") # family
setName(3, "Noto Color Emoji CBDT Subset") # family
setName(4, "Noto Color Emoji CBDT Subset") # full
setName(6, "NotoColorEmojiCBDTSubset")   # postscript

f.save("output.ttf")

@saecki saecki force-pushed the color-emoji-cbdt-subset branch from 4e3c70e to d729bc7 Compare June 5, 2026 13:41
@laurmaedje laurmaedje merged commit 0967e5e into main Jun 9, 2026
6 checks passed
@laurmaedje laurmaedje deleted the color-emoji-cbdt-subset branch June 9, 2026 10:30
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.

2 participants