The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
DB48X/50X alternative fonts - softkey "fit"?
12-05-2024, 05:22 PM (This post was last modified: 12-06-2024 09:02 AM by n1msr.)
Post: #1
DB48X/50X alternative fonts - softkey "fit"?
I am trying to test an alternative font for the DB48X on the simulator for now (WSL Fedora).
I am trying a Courier font just to test that I can do it. I am not suggesting this is right for the DB48X. (The TTF file is CourierPrime.ttf.)

I can get a new .ttf file and get new .cc files generated in the db48x/fonts directory. When I run the simulator the font is there as expected. The "fit" is not good, but I think I can adjust the parameters in the Makefile (sent to ttf2font program that makes the .cc files) to adjust these.

However, I haven't found how to make sure the alterative font fits into the softkey menus. Has anyone tried this? I need to do possibly two things:

1. locate the "bottom" of the characters lower within the softkey outline
2. scale the font so that it fits within the softkey outline

So far I have used the same parameters for ttf2font in the Makefile as in the released build of v0.8.7 of DB48X, which uses FogSans-ddd.ttf as its BASEFONT.

Incidentally, while on the subject of ttf2font, there are two parameters, -s and -S used (upper and lower case 's'). The usage/help message in ttf2font does not distinguish the meanings of the upper and lower case S parameters.
The -s (lower case) is defined as: "-s <size>: Force font size to s pixels\n".

If you need to see the Makefile it is here (Github): https://github.com/c3d/db48x/blob/stable/Makefile

Update: I changed the parameter -y from the release settings in the Makefile that calls ttf2font (for FogSans font) to 0 and this seems to have allowed the Courier font soft menu labels to be readable. "y" adjusts the Y position of the font character.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
DB48X/50X alternative fonts - softkey "fit"? - n1msr - 12-05-2024 05:22 PM



User(s) browsing this thread: 1 Guest(s)