From 4cbc56ebc103e1b8302a4b710309e3af6a553ffc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 6 May 2014 21:31:05 +0100 Subject: Add Unicode support to internal font. + Now contains more glpyhs (was previously limited to cp-1252). + When a glyph is unavailable, the codepoint is now rendered. + Added glyph data file. + Added converter to generate the font's .c file from the data. TODO: The generated file is currently checked into the repo, but it should be generated as part of the build process, in the build-* directory. To update the generated source file, first build the converter: $ gcc -O2 -Wall framebuffer/convert_font.c -lm \ -o build-Linux-framebuffer/tools/convert_font And then use it to generate the souce file: $ build-Linux-framebuffer/tools/convert_font \ framebuffer/res/fonts/glyph_data \ framebuffer/GEN_font_internal.c -v The converter's usage is: convert_font [options] See convert_font --help for more details. --- framebuffer/Makefile.target | 5 ----- 1 file changed, 5 deletions(-) (limited to 'framebuffer/Makefile.target') diff --git a/framebuffer/Makefile.target b/framebuffer/Makefile.target index 0ce796be0..69622a60b 100644 --- a/framebuffer/Makefile.target +++ b/framebuffer/Makefile.target @@ -143,11 +143,6 @@ S_FRAMEBUFFER_FBTK := fbtk.c event.c fill.c bitmap.c user.c window.c \ S_FRAMEBUFFER += font_$(NETSURF_FB_FONTLIB).c -ifeq ($(NETSURF_FB_FONTLIB),internal) -S_FRAMEBUFFER += nsfont_regular.c nsfont_italic.c nsfont_bold.c \ - nsfont_italic_bold.c -endif - S_FRAMEBUFFER := $(addprefix framebuffer/,$(S_FRAMEBUFFER)) $(addprefix framebuffer/fbtk/,$(S_FRAMEBUFFER_FBTK)) # This is the final source build list -- cgit v1.2.3