Commit graph

5 commits

Author SHA1 Message Date
Nick Peskett
e1da541749 Option to use the lighter hinting algorithm (FT_LOAD_TARGET_LIGHT).
I've found this algorithm produces clearer results when rendering
some fonts at small point sizes.

Change-Id: If87d82731ad324405195b25baad78fe54e92c142
Reviewed-on: http://gerrit.rockbox.org/412
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Tested: Purling Nayuki <cyq.yzfl@gmail.com>
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2014-01-26 16:11:05 +01:00
Dominik Riebeling
b66239b436 Fix Win32 native convttf creating invalid output files.
When operating with binary files on Windows it is necessary to explicitly open
them in binary mode to prevent unwanted effects.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29699 a1c6a512-1295-4272-9138-f99709370657
2011-04-10 11:25:59 +00:00
Dominik Riebeling
7adc200564 Make convttf build with C89 compilers.
- Move variable declarations to the top of blocks to be compatible with C89
  compilers (like MSVS).
- Remove unnecessary Windows includes.
- Paths on Windows usually use backslash as path delimiter so accept that as
  well.
- Rename some variables to avoid shadowing functions (like index()).

No functional changes.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29698 a1c6a512-1295-4272-9138-f99709370657
2011-04-09 20:35:17 +00:00
Magnus Holmgren
671127c65d Commit FS#12000: confttv - try to make digits equally wide (-w to disable)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29633 a1c6a512-1295-4272-9138-f99709370657
2011-03-22 19:37:28 +00:00
Thomas Martitz
9edd6d4ee9 Anti-Aliased Fonts support.
This enables Rockbox to render anti-aliased fonts using an alpha blending method.
The input font bitmaps are 4bit, i.e. 4x larger, but the metadata size stays the same.

A tool, convttf, for converting ttf fonts directly to the Rockbox fnt format is provided.
It has a useful help output, but the parameter that works best is -c1 or -c2 (2 for larger font sizes).

Flyspray: FS#8961
Author: Initial work by Jonas Hurrelmann, further work by Fred Bauer, Andrew Mahone, Teruaki Kawashima and myself.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29523 a1c6a512-1295-4272-9138-f99709370657
2011-03-05 18:36:51 +00:00