From 56b49b3074f4ad9b6774f7be81b35772733b15a0 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 31 Aug 2020 13:31:00 -0400 Subject: [PATCH] fonts: Use '08-Rockfont' as FONT_SYSFIXED on targets with 128x64 screens ..It's already the default UI font on those targets Change-Id: If8cb44da650d19882e4bd4b641af2f4fa59c1cd1 --- firmware/firmware.make | 9 ++++++--- tools/configure | 11 +++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/firmware/firmware.make b/firmware/firmware.make index 50b58af794..e2babca594 100644 --- a/firmware/firmware.make +++ b/firmware/firmware.make @@ -22,7 +22,10 @@ OTHER_SRC += $(FIRMLIB_SRC) FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a -SYSFONT = $(ROOTDIR)/fonts/08-Schumacher-Clean.bdf +ifeq ($(SYSFONT),) +SYSFONT = 08-Schumacher-Clean +endif +SYSFONTX = $(ROOTDIR)/fonts/$(SYSFONT).bdf CLEANOBJS += $(BUILDDIR)/sysfont.* $(BUILDDIR)/version.* @@ -37,10 +40,10 @@ $(FIRMLIB): $(FIRMLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null -$(BUILDDIR)/sysfont.h: $(SYSFONT) $(TOOLS) $(BUILDDIR)/firmware/common/config.o +$(BUILDDIR)/sysfont.h: $(SYSFONTX) $(TOOLS) $(BUILDDIR)/firmware/common/config.o $(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -h -o $@ $< -$(BUILDDIR)/sysfont.o: $(SYSFONT) $(BUILDDIR)/sysfont.h +$(BUILDDIR)/sysfont.o: $(SYSFONTX) $(BUILDDIR)/sysfont.h $(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -c -o $(BUILDDIR)/sysfont.c $< $(call PRINTS,CC $(subst $(ROOTDIR)/,,$(BUILDDIR)/sysfont.c))$(CC) $(CFLAGS) -c $(BUILDDIR)/sysfont.c -o $@ diff --git a/tools/configure b/tools/configure index 79875aca14..7c9e3773c6 100755 --- a/tools/configure +++ b/tools/configure @@ -28,6 +28,7 @@ libdir= sharedir= thread_support="ASSEMBLER_THREADS" +sysfont="08-Schumacher-Clean" app_lcd_width= app_lcd_height= app_lcd_orientation= @@ -1737,6 +1738,7 @@ fi t_cpu="arm" t_manufacturer="pnx0101" t_model="iriver-ifp7xx" + sysfont="08-Rockfont" ;; 14|iriverh10) @@ -2244,6 +2246,7 @@ fi t_cpu="arm" t_manufacturer="tcc77x" t_model="logikdax" + sysfont="08-Rockfont" ;; 89|creativezenxfistyle) @@ -2542,6 +2545,7 @@ fi t_cpu="arm" t_manufacturer="tcc77x" t_model="m200" + sysfont="08-Rockfont" ;; 54|sansac100) @@ -2565,6 +2569,7 @@ fi t_cpu="arm" t_manufacturer="tcc77x" t_model="c100" + sysfont="08-Rockfont" ;; 55|sansaclip) @@ -2583,6 +2588,7 @@ fi t_cpu="arm" t_manufacturer="as3525" t_model="sansa-clip" + sysfont="08-Rockfont" if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi arm9tdmicc GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'` @@ -2625,6 +2631,7 @@ fi t_cpu="arm" t_manufacturer="as3525" t_model="sansa-m200v4" + sysfont="08-Rockfont" if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi arm9tdmicc GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'` @@ -2691,6 +2698,7 @@ fi t_cpu="arm" t_manufacturer="as3525" t_model="sansa-clipv2" + sysfont="08-Rockfont" arm926ejscc ;; @@ -2732,6 +2740,7 @@ fi t_cpu="arm" t_manufacturer="as3525" t_model="sansa-clipplus" + sysfont="08-Rockfont" arm926ejscc ;; @@ -4028,6 +4037,7 @@ fi t_cpu="mips" t_manufacturer="ingenic_jz47xx" t_model="xduoo_x3" + sysfont="08-Rockfont" ;; 242|xduoox3ii) @@ -4707,6 +4717,7 @@ export MODELNAME=${modelname} export FLASHFILE=${flash} export TARGET_ID=${target_id} export TARGET=-D${target} +export SYSFONT=${sysfont} export ARCH=${arch} export ARCH_VERSION=${arch_version} export CPU=${t_cpu}