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
| | |-+  [Help] Font related problems!
« previous next »
  • Print
Pages: [1]

Author Topic: [Help] Font related problems!  (Read 944 times)

Offline littleevilllama

  • Member
  • *
  • Posts: 8
[Help] Font related problems!
« on: November 08, 2010, 08:17:09 AM »
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

* dump 101108-144142 and dump 101108-1441412.JPG (15.32 kB, 440x176 - viewed 183 times.)
« Last Edit: November 08, 2010, 08:20:48 AM by littleevilllama »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: [Help] Font related problems!
« Reply #1 on: November 08, 2010, 05:39:06 PM »
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
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: [Help] Font related problems!
« Reply #2 on: November 09, 2010, 11:55:12 AM »
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.
Logged

Offline littleevilllama

  • Member
  • *
  • Posts: 8
Re: [Help] Font related problems!
« Reply #3 on: November 09, 2010, 12:00:44 PM »
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
« Last Edit: November 09, 2010, 12:57:36 PM by littleevilllama »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [Help] Font related problems!
 

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

Page created in 0.071 seconds with 15 queries.