Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  convttf doesn't read unicode past a certain point
« previous next »
  • Print
Pages: [1]

Author Topic: convttf doesn't read unicode past a certain point  (Read 995 times)

Offline Dook

  • Member
  • *
  • Posts: 66
    • D00k.net
convttf doesn't read unicode past a certain point
« on: June 29, 2023, 11:59:15 AM »
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?
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: convttf doesn't read unicode past a certain point
« Reply #1 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
« Last Edit: June 30, 2023, 10:08:40 AM by chris_s »
Logged

Offline Dook

  • Member
  • *
  • Posts: 66
    • D00k.net
Re: convttf doesn't read unicode past a certain point
« Reply #2 on: June 30, 2023, 10:11:12 AM »
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

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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  convttf doesn't read unicode past a certain point
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.131 seconds with 21 queries.