With last changes the Tom Thumb 3x5 font is now 4x6

This commit is contained in:
Gregory Nutt 2017-01-04 10:31:53 -06:00
parent 1ff532e484
commit d91cf5736e
8 changed files with 26 additions and 26 deletions

View File

@ -555,12 +555,12 @@ config NXFONT_X11_MISC_FIXED_10X20
This option enables support for a "x11-misc-fixed-10x20".
(font ID FONTID_X11_MISC_FIXED_10X20 == 42).
config NXFONT_TOM_THUMB_3X6
bool "Tom Thumb Monospace 3x6"
config NXFONT_TOM_THUMB_4X6
bool "Tom Thumb Monospace 4x6"
default n
---help---
This option enables support for a small, 3x5 font.
(font ID FONTID_TOM_THUMB_3X6 == 43).
This option enables support for a small, 3x5 font (with blank space
padding to 4x6) (font ID FONTID_TOM_THUMB_4X6 == 43).
endmenu

View File

@ -195,10 +195,10 @@
#elif defined(CONFIG_NXFONT_MONO5X8)
# define NXFONT_DEFAULT FONTID_MONO5X8
/* Tom Thumb mono-space 3x6 font */
/* Tom Thumb mono-space 4x6 font */
#elif defined(CONFIG_NXFONT_TOM_THUMB_3X6)
# define NXFONT_DEFAULT FONTID_TOM_THUMB_3X6
#elif defined(CONFIG_NXFONT_TOM_THUMB_4X6)
# define NXFONT_DEFAULT FONTID_TOM_THUMB_4X6
#endif
@ -394,8 +394,8 @@ enum nx_fontid_e
, FONTID_X11_MISC_FIXED_10X20 = 42 /* X11 misc fixed 10x20 */
#endif
#ifdef CONFIG_NXFONT_TOM_THUMB_3X6
, FONTID_TOM_THUMB_3X6 = 43 /* Tom Thumb monospace 3x6 */
#ifdef CONFIG_NXFONT_TOM_THUMB_4X6
, FONTID_TOM_THUMB_4X6 = 43 /* Tom Thumb monospace 4x6 */
#endif
};

View File

@ -225,7 +225,7 @@ ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_10X20),y)
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=42 EXTRADEFINES=$(EXTRADEFINES)
endif
ifeq ($(CONFIG_NXFONT_TOM_THUMB_3X6),y)
ifeq ($(CONFIG_NXFONT_TOM_THUMB_4X6),y)
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=43 EXTRADEFINES=$(EXTRADEFINES)
endif

View File

@ -225,10 +225,10 @@ ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_10X20),y)
CSRCS += nxfonts_bitmaps_x11-misc-fixed-10x20.c
endif
# Tom Thumb mono-space 3x6 font
# Tom Thumb mono-space 4x6 font
ifeq ($(CONFIG_NXFONT_TOM_THUMB_3X6),y)
CSRCS += nxfonts_tom-thumb-3x6.c
ifeq ($(CONFIG_NXFONT_TOM_THUMB_4X6),y)
CSRCS += nxfonts_tom-thumb-4x6.c
endif
# Add the nxfont/ directory to the build

View File

@ -296,11 +296,11 @@ NXFONTS_PREFIX := g_x11_misc_fixed_10x20_
GEN_CSRC = nxfonts_bitmaps_x11-misc-fixed-10x20.c
endif
# Tom Thumb mono-space 3x6 font
# Tom Thumb mono-space 4x6 font
ifeq ($(NXFONTS_FONTID),43)
NXFONTS_PREFIX := g_tom_thumb_3x6_
GEN_CSRC = nxfonts_tom-thumb-3x6.c
NXFONTS_PREFIX := g_tom_thumb_4x6_
GEN_CSRC = nxfonts_tom-thumb-4x6.c
endif
DEPENDENCY := nxfonts_bitmaps.c

View File

@ -131,7 +131,7 @@
#elif NXFONTS_FONTID == 42
# include "nxfonts_x11-misc-fixed-10x20.h"
#elif NXFONTS_FONTID == 43
# include "nxfonts_tom-thumb-3x6.h"
# include "nxfonts_tom-thumb-4x6.h"
#else
# error "No font ID specified"
#endif

View File

@ -238,8 +238,8 @@ extern const struct nx_fontpackage_s g_x11_misc_fixed_9x18B_package;
extern const struct nx_fontpackage_s g_x11_misc_fixed_10x20_package;
#endif
#ifdef CONFIG_NXFONT_TOM_THUMB_3X6
extern const struct nx_fontpackage_s g_tom_thumb_3x6_package;
#ifdef CONFIG_NXFONT_TOM_THUMB_4X6
extern const struct nx_fontpackage_s g_tom_thumb_4x6_package;
#endif
static FAR const struct nx_fontpackage_s *g_fontpackages[] =
@ -426,10 +426,10 @@ static FAR const struct nx_fontpackage_s *g_fontpackages[] =
&g_x11_misc_fixed_10x20_package,
#endif
/* Tom Thumb mono-space 3x6 font */
/* Tom Thumb mono-space 4x6 font */
#ifdef CONFIG_NXFONT_TOM_THUMB_3X6
&g_tom_thumb_3x6_package,
#ifdef CONFIG_NXFONT_TOM_THUMB_4X6
&g_tom_thumb_4x6_package,
#endif
NULL

View File

@ -1,5 +1,5 @@
/****************************************************************************
* libnx/nxfonts/nxfonts_tom-thumb-3x6.h
* libnx/nxfonts/nxfonts_tom-thumb-4x6.h
*
* Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved.
* Author: Alan Carvalho de Assis <acassis@gmail.com>
@ -36,8 +36,8 @@
*
****************************************************************************/
#ifndef __LIBNX_NXFONTS_NXFONTS_TOM_THUMB_3X6_H
#define __LIBNX_NXFONTS_NXFONTS_TOM_THUMB_3X6_H
#ifndef __LIBNX_NXFONTS_NXFONTS_TOM_THUMB_4X6_H
#define __LIBNX_NXFONTS_NXFONTS_TOM_THUMB_4X6_H
/****************************************************************************
* Included Files
@ -49,7 +49,7 @@
/* Font ID */
#define NXFONT_ID FONTID_TOM_THUMB_3X6
#define NXFONT_ID FONTID_TOM_THUMB_4X6
/* Ranges of 7-bit and 8-bit fonts */