diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 18:36:51 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 18:36:51 +0000 |
commit | 9edd6d4ee912273690b2600e8c52183dfa058eb9 (patch) | |
tree | cf6b0723f42c090022b94b38b3c4d856e9378d40 /tools/tools.make | |
parent | 396ddd9fd79e458d1107f4065ce072eef99b6bce (diff) | |
download | rockbox-9edd6d4ee912273690b2600e8c52183dfa058eb9.tar.gz rockbox-9edd6d4ee912273690b2600e8c52183dfa058eb9.zip |
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
Diffstat (limited to 'tools/tools.make')
-rw-r--r-- | tools/tools.make | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/tools.make b/tools/tools.make index 64a47c53de..c143157dab 100644 --- a/tools/tools.make +++ b/tools/tools.make | |||
@@ -33,6 +33,11 @@ $(TOOLSDIR)/uclpack: $(TOOLSDIR)/ucl/uclpack.c $(wildcard $(TOOLSDIR)/ucl/src/*. | |||
33 | $(call PRINTS,CC $(@F))$(HOSTCC) $(TOOLSCFLAGS) -I$(TOOLSDIR)/ucl \ | 33 | $(call PRINTS,CC $(@F))$(HOSTCC) $(TOOLSCFLAGS) -I$(TOOLSDIR)/ucl \ |
34 | -I$(TOOLSDIR)/ucl/include -o $@ $^ | 34 | -I$(TOOLSDIR)/ucl/include -o $@ $^ |
35 | 35 | ||
36 | $(TOOLSDIR)/convttf: $(TOOLSDIR)/convttf.c | ||
37 | $(call PRINTS,CC $(@F)) | ||
38 | $(SILENT)$(HOSTCC) $(TOOLSFLAGS) -lm -O2 -Wall -g $+ -o $@ \ | ||
39 | `freetype-config --libs` `freetype-config --cflags` | ||
40 | |||
36 | # implicit rule for simple tools | 41 | # implicit rule for simple tools |
37 | $(TOOLSDIR)/%: $(TOOLSDIR)/%.c | 42 | $(TOOLSDIR)/%: $(TOOLSDIR)/%.c |
38 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$@)) | 43 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$@)) |