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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Using anti-aliased fonts
« previous next »
  • Print
Pages: [1]

Author Topic: Using anti-aliased fonts  (Read 3496 times)

Offline Carson Dyle

  • Member
  • *
  • Posts: 80
Using anti-aliased fonts
« on: July 12, 2011, 12:43:11 AM »
What do I need to know about using anti-aliased fonts in 3.9 in a custom theme? Are any/all of the fonts included in the 3.9 fonts package anti-aliased?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Using anti-aliased fonts
« Reply #1 on: July 12, 2011, 01:04:02 AM »
Quote from: Carson Dyle on July 12, 2011, 12:43:11 AM
What do I need to know about using anti-aliased fonts in 3.9 in a custom theme?

Absolutely nothing...the syntax is exactly the same.

Quote from: Carson Dyle on July 12, 2011, 12:43:11 AM
Are any/all of the fonts included in the 3.9 fonts package anti-aliased?

No, they are not.

For now you must make your own, which really isn't hard at all. It requires checking out the Rockbox source code (the only part you actually need is /rockbox/tools) and compiling the command-line tool convttf.

Alternatively...

I have an anti-aliased font package that I use for my RaaA themes in which the fonts range from 12px to 50px, in 2px increments (12, 14, 16, ... etc.), and has both bold and regular versions of each size. The font used for this package is "DroidSans(-Bold).ttf" from Google.

Link: DroidSans [-Bold].zip



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

Offline Carson Dyle

  • Member
  • *
  • Posts: 80
Re: Using anti-aliased fonts
« Reply #2 on: July 12, 2011, 01:13:12 AM »
He, thanks for that. I'm looking at them in the 3.9 Fuze v2 simulator under Settings > Theme Settings > Font and all I get is gibberish.

Is there a convttf exe compiled for Windows available for download anywhere?


Post Merge: July 12, 2011, 01:41:26 AM
I found a compiled exe of convttf and tried it on a couple of ttf font files from my Windows XP computer. I see the same gibberish in the simulator.

Ideas?
« Last Edit: July 12, 2011, 01:41:26 AM by Carson Dyle »
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Using anti-aliased fonts
« Reply #3 on: July 12, 2011, 04:06:27 AM »
Have you actually tried it on the device?
While the simulators do *try* to replicate the physical device, it may well be failing in this regard.

Additionally, are the "gibberish" fonts your conversions, or mine, or both?
I can verify that my fonts do indeed work.

If it is just the fonts you yourself have converted, would you mind posting the syntax that you used to convert them so that I might review it please?


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

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Using anti-aliased fonts
« Reply #4 on: July 12, 2011, 04:17:16 AM »
Quote from: Carson Dyle on July 12, 2011, 01:13:12 AM
I found a compiled exe of convttf and tried it on a couple of ttf font files from my Windows XP computer. I see the same gibberish in the simulator.

Ideas?

Broken convttf binary? Where did you get that binary from? I did some fixes some time ago to make it work when compiled natively on Windows (prior to that only Cygwin worked on Windows). There might be broken binaries around (it did compile before, just not produce proper output files).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Carson Dyle

  • Member
  • *
  • Posts: 80
Re: Using anti-aliased fonts
« Reply #5 on: July 12, 2011, 04:17:58 AM »
Ok, they're working now. Turns out the simulator I was running wasn't v3.9.  :-[
Logged

Offline Carson Dyle

  • Member
  • *
  • Posts: 80
Re: Using anti-aliased fonts
« Reply #6 on: July 13, 2011, 05:32:31 PM »
Quote from: [St.
I have an anti-aliased font package that I use for my RaaA themes in which the fonts range from 12px to 50px, in 2px increments (12, 14, 16, ... etc.), and has both bold and regular versions of each size. The font used for this package is "DroidSans(-Bold).ttf" from Google.

[St.], I got a chance to play with your fonts today. They look great. The smaller ones have a bit too much space between the letters, but the larger ones look perfect. I've downloaded the ttf files for the originals and will try out using convttf.

How much experimenting did you do to get proper line and letter spacing, or are they all the same?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Using anti-aliased fonts
« Reply #7 on: July 14, 2011, 05:32:58 AM »
It took a *lot* of pissing around to get the fonts to look similar and have consistent ascent, descent, and spacing (and it's still not 100%).

Convttf is a nice tool, but in certain circumstances it will give an undesired output that needs to be tweaked manually.

My suggestion is to use the -vvv (extremely verbose) flag whilst converting so you don't have to load the fonts to the device and attempt to review them there after each change.



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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Using anti-aliased fonts
 

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

Page created in 0.075 seconds with 15 queries.