mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
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
This commit is contained in:
parent
396ddd9fd7
commit
9edd6d4ee9
11 changed files with 1939 additions and 27 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue