Rockbox Development > Starting Development and Compiling

Change the phrase "FONT_SYSFIXED"

(1/1)

danielma09:
Hello,

Most of the programs in rockbox (including the keyboard - which is the main problem), use a font SYSFIXED some reason did not include it in Hebrew.
From what I saw in all programs, to set the font to use the phrase FONT_SYSFIXED, a makes to use the system font, there is also the expression FONT_UI, a makes to use the font theme currently in use.

An example of the game sneak2:
   / * Lets use the default font * /
     rb-> lcd_setfont (FONT_SYSFIXED);
# if LCD_DEPTH> 1
     rb-> lcd_set_backdrop (NULL);
# endif

What should have written to use another specific font, such as 08-rockfont or 07-fixed, without having to use FONT_UI? I tried to change the expression FONT_SYSFIXED to-08-rockfont, and it returned an error. How to turn a different font?

Thanks.

nls:
First, there's a reason for using the sysfont where it is used. Either the code cannot rely on a font being loaded (only special cases) or the code needs the font to be a specific size (more common, the reason for uing the sysfont for the built in keyboard). If you use a different font the ui will not look correct in these places.
The keyboard is easy to fix though, you just need to load a custom keyboard and it will use the hteme font automatically, the built in keyboard doesn't have hebrew chars anyway so a different font wouldn't help there.
To actually load a different font look at other plugins that do it, iirc rockpaint is one example.

Navigation

[0] Message Index

Go to full version