summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-03-05 18:36:51 +0000
committerThomas Martitz <kugel@rockbox.org>2011-03-05 18:36:51 +0000
commit9edd6d4ee912273690b2600e8c52183dfa058eb9 (patch)
treecf6b0723f42c090022b94b38b3c4d856e9378d40 /tools/Makefile
parent396ddd9fd79e458d1107f4065ce072eef99b6bce (diff)
downloadrockbox-9edd6d4ee912273690b2600e8c52183dfa058eb9.tar.gz
rockbox-9edd6d4ee912273690b2600e8c52183dfa058eb9.tar.bz2
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/Makefile')
-rw-r--r--tools/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 0a69dde5da..c33d152c41 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -13,10 +13,10 @@ LDFLAGS := -g
CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat lngdump \
- telechips gigabeats creative hmac-sha1 rbspeexenc mkzenboot mk500boot
+ telechips gigabeats creative hmac-sha1 rbspeexenc mkzenboot mk500boot convttf
all: scramble descramble sh2d rdf2binary mkboot mkzenboot convbdf codepages \
- uclpack rbspeexenc voicefont mk500boot
+ uclpack rbspeexenc voicefont mk500boot convttf
scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o \
iaudio_bl_flash.o creative.o hmac-sha1.o
@@ -97,6 +97,11 @@ voicefont: voicefont.c
usb_benchmark: usb_benchmark.c
$(SILENT)$(CC) $(CFLAGS) -lusb $+ -o $@
+convttf: convttf.c
+ $(call PRINTS,CC $(@F))
+ $(SILENT)$(CC) $(CFLAGS) -lm -std=c99 -O2 -Wall -g $+ -o $@ \
+ `freetype-config --libs` `freetype-config --cflags`
+
clean:
@echo "Cleaning tools"
$(SILENT)rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do \