diff --git a/Documentation/NXGraphicsSubsystem.html b/Documentation/NXGraphicsSubsystem.html index d37e24ce170e9ab8237e3f1367c56bd0adee30a0..0b0c69ce36ee97c6667547eb733b08d344a5bc72 100644 --- a/Documentation/NXGraphicsSubsystem.html +++ b/Documentation/NXGraphicsSubsystem.html @@ -2779,15 +2779,15 @@ int nxf_convert_32bpp(FAR uint32_t *dest, uint16_t height,
- include/nuttx/nxfonts.h
. Add you new font as a possible system default font:
+ include/nuttx/nxfonts.h
. Add you new font as a possible system default font:
#if defined(CONFIG_NXFONT_SANS23X27) # define NXFONT_DEFAULT FONTID_SANS23X27 #elif defined(CONFIG_NXFONT_MYFONT) # define NXFONT_DEFAULT FONTID_MYFONT #endif -
Then define the actual font ID. Make sure that the font ID value is unique: @@ -2814,7 +2814,7 @@ enum nx_fontid_e
- nuttx/graphics/Makefile
.
+ nuttx/graphics/Makefile
.
This file needs logic to auto-generate a C source file from the header file that you generated with the the bdf-converter program.
Notice NXFONTS_FONTID=2
; this must be set to the same font ID value that you defined in the include/nuttx/nxfonts.h
file.
- nuttx/graphics/nxfonts/Make.defs
.
+ nuttx/graphics/nxfonts/Make.defs
.
Set the make variable NXFSET_CSRCS
.
NXFSET_CSRCS
determines the name of the font C file to build when NXFONTS_FONTID=2
:
- nuttx/graphics/nxfonts/Makefile.sources
.
+ nuttx/graphics/nxfonts/Makefile.sources
.
This is the Makefile used in step 5 that will actually generate the font C file.
So, given your NXFONTS_FONTID=2, it needs to determine a prefix to use for auto-generated variable and function names and (again) the name of the autogenerated file to create (this must be the same name that was used in nuttx/graphics/nxfonts/Make.defs
):
- graphics/nxfonts/nxfonts_bitmaps.c
.
+ graphics/nxfonts/nxfonts_bitmaps.c
.
This is the file that contains the generic font structures.
It is used as a "template&qout; file by nuttx/graphics/nxfonts/Makefile.sources
to create your customized font data set at build time.
- Where nxfonts_myfont.h
is the NuttX font file that we generated in
+ Where
nxfonts_myfont.h
is the NuttX font file that we generated in
step 2 using the bdf-converter tool.