Skip to content

Fix export of supplementary plane characters in font name to TTF#5396

Merged
skef merged 8 commits intofontforge:masterfrom
iorsh:ttf_utf16
Apr 20, 2024
Merged

Fix export of supplementary plane characters in font name to TTF#5396
skef merged 8 commits intofontforge:masterfrom
iorsh:ttf_utf16

Conversation

@iorsh
Copy link
Copy Markdown
Contributor

@iorsh iorsh commented Apr 3, 2024

Type of change

  • Bug fix
  • New feature

TTF names must be encoded as UTF-16BE to support supplementary plane characters (emojis etc.). This PR fixes export and import of TTF names. The resulting font names are correctly displayed in Linux and in Windows.

Screenshot_LibreOffice_Linux

Screenshot 2024-04-04 003611

@iorsh
Copy link
Copy Markdown
Contributor Author

iorsh commented Apr 4, 2024

Bulk tests passed with the following environment"

FF_PY_SCRIPT_LINE="f=fontforge.open(argv[1]); f.generate(argv[2], flags='no-FFTM-table')"
FF_OUTPUT_FILE="Output.ttf"

Copy link
Copy Markdown
Contributor

@skef skef left a comment

Choose a reason for hiding this comment

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

lgtm

@skef skef merged commit 4b60c87 into fontforge:master Apr 20, 2024
@iorsh iorsh deleted the ttf_utf16 branch March 28, 2025 07:33
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