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
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Change the phrase "FONT_SYSFIXED"
« previous next »
  • Print
Pages: [1]

Author Topic: Change the phrase "FONT_SYSFIXED"  (Read 1566 times)

Offline danielma09

  • Member
  • *
  • Posts: 10
Change the phrase "FONT_SYSFIXED"
« on: October 25, 2011, 06:00:19 PM »
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.
« Last Edit: October 25, 2011, 06:05:36 PM by danielma09 »
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Change the phrase "FONT_SYSFIXED"
« Reply #1 on: October 29, 2011, 04:16:04 AM »
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Change the phrase "FONT_SYSFIXED"
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.