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
| | |-+  Sansation Font Conversion .bdf/.fnt files are ugly
« previous next »
  • Print
Pages: [1]

Author Topic: Sansation Font Conversion .bdf/.fnt files are ugly  (Read 2726 times)

Offline greenman

  • Member
  • *
  • Posts: 6
Sansation Font Conversion .bdf/.fnt files are ugly
« on: August 28, 2013, 01:08:50 AM »
I'm very interested in font conversion.
I've found a great font called Sansation that is open-source.
I've seen it used in the beautiful "Clyp-E" theme created by Boris Cisternas.
I like the font, so I downloaded it, and followed all the directions for creating the .fnt files.
I did it on Linux and Windows. In both cases, the resulting files look terrible as compared with the smooth .fnt files provided by Boris.
I tried the otf2bdf/convbdf method. I tried fontforge too.
The fonts look awful.
I tried different resolutions, unselecting rounding, etc.
If someone could give me a clue about how to make these fonts look better, I would be grateful.
Logged

Offline nick_p

  • Member
  • *
  • Posts: 115
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #1 on: August 28, 2013, 08:38:12 AM »
If you've got a dev environment set up, have a go with this patch;

http://gerrit.rockbox.org/r/#/c/412/

I'd be interested how you get on, it made the DejaVuSans font I used it on much smoother.
Logged

Offline greenman

  • Member
  • *
  • Posts: 6
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #2 on: August 28, 2013, 05:38:14 PM »
I have an ubuntu 13.04 Virtual box with a clipzip simulator and a sansa e200 simulator that are working correctly.
convttf.c is not compiled in the tools directory.
Simply executing "make" inside the tools directory did not build convttf, even though it's clearly supposed to in the Makefile.
I found this method on the forum that seemed to do the trick:
http://forums.rockbox.org/index.php/topic,27390.msg178739.html#msg178739
I added "alias='convttf ~/rockbox/rockbox/tools/convttf' " to my .bashrc and I'm good to go.
Fonts that resulted are anti-aliased and beautiful. Thank you.
Logged

Offline greenman

  • Member
  • *
  • Posts: 6
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #3 on: August 29, 2013, 10:18:42 AM »
Quote from: nick_p on August 28, 2013, 08:38:12 AM
If you've got a dev environment set up, have a go with this patch;

http://gerrit.rockbox.org/r/#/c/412/

I'd be interested how you get on, it made the DejaVuSans font I used it on much smoother.
I'm curious - DejaVu has thousands of glyphs. The .fnt files are huge when I create them for that reason. How do you reduce the number of glyphs to a more reasonable commonly-used set?

Code: [Select]
chris@rockbox:~/Downloads/fonts/dejavu/dejavu-fonts-ttf-2.34/ttf$ convttf -p 12 -c 1 DejaVuSans.ttf

Please wait, converting DejaVuSans.ttf:
Writing 12-DejaVuSans.fnt00%)
done (converted 5348 glyphs, 0 errors).

chris@rockbox:~/Downloads/fonts/dejavu/dejavu-fonts-ttf-2.34/ttf$ ls -lah 12-DejaVuSans.fnt
-rw-rw-r-- 1 chris chris 564K Aug 29 10:23 12-DejaVuSans.fnt
chris@rockbox:~/Downloads/fonts/dejavu/dejavu-fonts-ttf-2.34/ttf$

That's just one font!

Edit: I found out that I can modify them on fontsquirrel.com using expert mode with a unicode range 0020-017F to get a subset of common Latin symbols (367 glyphs instead of 5348). The .fnt files are still around 200K though.
« Last Edit: August 29, 2013, 11:23:10 AM by greenman »
Logged

Offline nick_p

  • Member
  • *
  • Posts: 115
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #4 on: August 29, 2013, 11:09:33 AM »
Ha ha, it didn't occur to me, well spotted;

Code: [Select]
$ du -h *
476K    10-DejaVuSans-Bold.fnt
556K    12-DejaVuSans-Bold.fnt
588K    13-DejaVuSans-Bold.fnt
420K    9-DejaVuSans-Bold.fnt
8.0K    DejaVuLicense.txt
Logged

Offline greenman

  • Member
  • *
  • Posts: 6
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #5 on: August 29, 2013, 11:11:40 AM »
I just edited my previous reply, not realizing you would answer so quickly. Thanks!
Logged

Offline nick_p

  • Member
  • *
  • Posts: 115
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #6 on: August 29, 2013, 11:17:07 AM »
Thank you for your thoroughness!

Great hint on cutting down the number of glyphs.

No-one complained about the theme I included them in for the Clip Zip, the combined size is only that of a short mp3 after all.

Maybe the Asian contingent would appreciate the abundance of glyphs...
Logged

Offline greenman

  • Member
  • *
  • Posts: 6
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #7 on: August 29, 2013, 11:22:33 AM »
Quote from: nick_p on August 29, 2013, 11:17:07 AM
Maybe the Asian contingent would appreciate the abundance of glyphs...
No doubt. :D
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Sansation Font Conversion .bdf/.fnt files are ugly
« Reply #8 on: September 02, 2013, 12:04:08 AM »
Even though you seem to have figured it out, for what its worth, I'll mention that:

Code: [Select]
make convttf

would've worked fine too.


[Saint]
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
| | |-+  Sansation Font Conversion .bdf/.fnt files are ugly
 

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

Page created in 0.073 seconds with 14 queries.