Support and General Use > Theming and Appearance Customization

convttf doesn't read unicode past a certain point

(1/1)

Dook:
I've been trying to improve unicode support recently in my theme's fonts, however I've run into an issue with convttf not reading and converting icons in a font past a certain unicode number. Based on some quick tests, it appears convttf reads up to 5 number unicode and stops (U+XXXX is read while U+XXXXX isn't) Seems it's able to read plane 0 while plane 1 onwards cannot be read. This covers a good chunk of modern emoji, certain mathmatical symbols (𝔞𝔟𝔠𝔡, 𝘢𝘣𝘤𝘥 etc) These aren't uncommon in songs, I've gotten a few requests to add them, is there any way I can force convttf to use these further ranges or will the script itself need to be changed?

chris_s:
It looks like there is a hardcoded limit at FFFF that you could try to adjust:
https://github.com/Rockbox/rockbox/blob/129fb4016bb081d9fc204fb66aa56cd4955e868e/tools/convttf.c#L93

edit: apparently not going to work -> https://github.com/Rockbox/rockbox/blob/129fb4016bb081d9fc204fb66aa56cd4955e868e/firmware/common/unicode.c#L514

Dook:

--- Quote from: chris_s on June 30, 2023, 09:44:24 AM ---It looks like there is a hardcoded limit at FFFF that you could try to adjust:
https://github.com/Rockbox/rockbox/blob/129fb4016bb081d9fc204fb66aa56cd4955e868e/tools/convttf.c#L93

edit: apparently not going to work -> https://github.com/Rockbox/rockbox/blob/129fb4016bb081d9fc204fb66aa56cd4955e868e/firmware/common/unicode.c#L514

--- End quote ---

Shoot, thanks for looking into it though. I imagine if it's a rockbox limitation, it's probably too much effort to change.

Navigation

[0] Message Index

Go to full version