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
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
| | |-+  Combining fonts (Nimbus with unicode support!)
« previous next »
  • Print
Pages: [1]

Author Topic: Combining fonts (Nimbus with unicode support!)  (Read 361 times)

Offline azn63237

  • Member
  • *
  • Posts: 4
Combining fonts (Nimbus with unicode support!)
« on: March 06, 2023, 05:37:24 PM »
Hello,

I'm looking to make a nimbus font with Japanese, Korean, and Chinese characters to use alongside the Podtwo theme. I was wondering how to combine the English character in 19-Nimbus.fnt with the Asian characters in Unifont ?

I tried using FontForge and convert to fnt with no success. Would anyone have any pointers? Thank you!
« Last Edit: March 07, 2023, 01:02:16 AM by azn63237 »
Logged

Offline azn63237

  • Member
  • *
  • Posts: 4
Re: Combining fonts
« Reply #1 on: March 07, 2023, 12:10:32 AM »
I found a hacky way to do this:

First, I downloaded 19-Nimbus.bdf from the rockbox source code. This contains only the English characters. It's in size 19.

Then, I downloaded the 16-GNU-Unifont.bdf. This covers most of the characters from all major languages. It's in size 16.

I opened both files in a notepad, and manually copy the "header" part and all the CHARSET that are in 19-Nimbus into 16-GNU-Unifont. The files are not difficult to understand! Use ENCODING to tell which character is which. And remember to include ENDFONT at the very end.

Finally, use convertbdf to convert the combined file to fnt. (I used the Windows binary)



Again, this method is obviously not perfect as it combine two sizes with no regards to the spacing. For now, it suits my needs. If anyone can find a better way to do this. Please do let me know! Thank you.

19-Nimbus-16-Unifont.bdf
19-Nimbus-16-Unifont.fnt
« Last Edit: March 07, 2023, 04:00:28 AM by azn63237 »
Logged

Offline azn63237

  • Member
  • *
  • Posts: 4
Re: Combining fonts (Nimbus with unicode support!)
« Reply #2 on: March 07, 2023, 03:50:50 AM »
If you are specifically using the PodTwo or PodBlue theme, they actually use 14-Nimbus in addition to 19-Nimbus (for the bottom bar).

You can display CJK characters at the bottom bar using the fnt downloaded from this patch. And change the # Preload Font in the wps and sbs
Logged

Offline Dook

  • Member
  • *
  • Posts: 22
    • D00k.net
Re: Combining fonts (Nimbus with unicode support!)
« Reply #3 on: March 09, 2023, 07:51:04 AM »
I've combined fonts using fontforge a few times for rockbox, though I work from otf and ttf files usually, my notes may be of use to you?
Logged

Offline azn63237

  • Member
  • *
  • Posts: 4
Re: Combining fonts (Nimbus with unicode support!)
« Reply #4 on: March 11, 2023, 06:44:16 AM »
Thanks for the guide. My problem is that I cannot find the Nimbus used in rockbox in the otf format. And the Merge Font function doesn't work for .bdf files.

Here is a relevant discussion. I managed to find the otf files of the ghostscript standard font pack, but the Nimbus font in that pack is not the one I'm looking for.


Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Combining fonts (Nimbus with unicode support!)
 

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

Page created in 0.195 seconds with 21 queries.