From 778bce2d8d383f434863845a4230c1a63ad11860 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 23 Jul 2011 14:27:01 +0000 Subject: Documentation update git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3814 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/Documentation/NXGraphicsSubsystem.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nuttx/Documentation/NXGraphicsSubsystem.html b/nuttx/Documentation/NXGraphicsSubsystem.html index d37e24ce1..0b0c69ce3 100644 --- a/nuttx/Documentation/NXGraphicsSubsystem.html +++ b/nuttx/Documentation/NXGraphicsSubsystem.html @@ -2779,15 +2779,15 @@ int nxf_convert_32bpp(FAR uint32_t *dest, uint16_t height,
  1. - 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

        1. - 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.

          @@ -2830,7 +2830,7 @@ genfontsources:
        2. - 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:

          @@ -2845,7 +2845,7 @@ endif
        3. - 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):

          @@ -2862,7 +2862,7 @@ endif
        4. - 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.

          @@ -2876,7 +2876,7 @@ endif #endif

      - 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.

    • -- cgit v1.2.3