Support and General Use > Theming and Appearance Customization
[Help] Font related problems!
(1/1)
littleevilllama:
Halo,
I have some problems with fonts in my skins. Not exactly those are "problems", but anyway...
My theme uses 5 different fonts so far (actually 7 with "0" and "1"), so:
1) It takes a while to load them even though I only need numeric chars for some of them. Is there any way to make some fonts only load numbers?
2) I need same fonts in all of my screens, but every time I have to load them separately for .sbs, .fms and .wps... is there any way to load fonts globally?
3) How many fonts I am able to use? How much space do I have? Sometimes my backdrops don't get loaded (mostly when I start player, they do get loaded manually... well at least .wps and .sbs :D)
Here are some screens from the theme I'm working on...
ps. oh, and YES, the DO look that good on Fuze :D
JdGordon:
1) use a number for the 3rd param for the font load line, 15 is a good one if you only need numbers (says how many chars to cache)
2) no but they are only loaded once anyway
3) 10 i tihnk
audio-i:
3) Besides the absolute font number limit JdGordon pointed out, you also have the skin ram usage limit, that may limit the number of fonts, images, etc you use in your theme. Initially, your background won't load if it's exceeded. You can of course check the skin ram usage anytime under system>rockbox info on your device or the sim.
littleevilllama:
Yeap, I already figured that out. Seems that by setting limits for fonts I was able to save ~60 kb... yeay :D Thank You.
EDIT: so, I somewhat finished the theme and suddenly ran into a bug.
I have "%Fl(8,21-Adobe-Helvetica.fnt,20)" set to load 21-Adobe-Helvetica.fnt in .fms, it only uses numbers (from 0 to 9 for displaying seconds) and 2 letters ("d" and "b" to display "db" while volume is being changed in fms... look to the picture above where radio screen is posted, smaller font in the middle is the one). The problem is that when I plug player to pc and all fonts change to that ugly looking default built in font, 21-Adobe-Helvetica gets messed diplaying random stuff after the player is disconnected (safe disconnection, not just pluging out)... so i just guess its a bug :D
Navigation
[0] Message Index
Go to full version