diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-23 14:27:01 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-23 14:27:01 +0000 |
commit | 778bce2d8d383f434863845a4230c1a63ad11860 (patch) | |
tree | 2fa18ded0ba5ca75412e0b1824e1dab57fbdbba0 /nuttx/Documentation | |
parent | baf4af60ec1100c43dec884c046d55e9a57c6b20 (diff) | |
download | px4-nuttx-778bce2d8d383f434863845a4230c1a63ad11860.tar.gz px4-nuttx-778bce2d8d383f434863845a4230c1a63ad11860.tar.bz2 px4-nuttx-778bce2d8d383f434863845a4230c1a63ad11860.zip |
Documentation update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3814 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Documentation')
-rw-r--r-- | nuttx/Documentation/NXGraphicsSubsystem.html | 16 |
1 files 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, <ol start="4"> <li> <p> - <code>include/nuttx/nxfonts.h</code>. Add you new font as a possible system default font: + <b><code>include/nuttx/nxfonts.h</code></b>. Add you new font as a possible system default font: </p> - <ul></pre> + <ul><pre> #if defined(CONFIG_NXFONT_SANS23X27) # define NXFONT_DEFAULT FONTID_SANS23X27 #elif defined(CONFIG_NXFONT_MYFONT) # define NXFONT_DEFAULT FONTID_MYFONT #endif -</pre><ul> +</pre></ul> <p> Then define the actual font ID. Make sure that the font ID value is unique: @@ -2814,7 +2814,7 @@ enum nx_fontid_e <ol start="5"> <li> <p> - <code>nuttx/graphics/Makefile</code>. + <b><code>nuttx/graphics/Makefile</code></b>. This file needs logic to auto-generate a C source file from the header file that you generated with the the <i>bdf-converter</i> program. Notice <code>NXFONTS_FONTID=2</code>; this must be set to the same font ID value that you defined in the <code>include/nuttx/nxfonts.h</code> file. </p> @@ -2830,7 +2830,7 @@ genfontsources: </li> <li> <p> - <code>nuttx/graphics/nxfonts/Make.defs</code>. + <b><code>nuttx/graphics/nxfonts/Make.defs</code></b>. Set the make variable <code>NXFSET_CSRCS</code>. <code>NXFSET_CSRCS</code> determines the name of the font C file to build when <code>NXFONTS_FONTID=2</code>: </p> @@ -2845,7 +2845,7 @@ endif </li> <li> <p> - <code>nuttx/graphics/nxfonts/Makefile.sources</code>. + <b><code>nuttx/graphics/nxfonts/Makefile.sources</code></b>. This is the Makefile used in step 5 that will actually generate the font C file. So, given your </code>NXFONTS_FONTID=2</code>, 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 <code>nuttx/graphics/nxfonts/Make.defs</code>): </p> @@ -2862,7 +2862,7 @@ endif </li> <li> <p> - <code>graphics/nxfonts/nxfonts_bitmaps.c</code>. + <b><code>graphics/nxfonts/nxfonts_bitmaps.c</code></b>. This is the file that contains the generic font structures. It is used as a "template&qout; file by <code>nuttx/graphics/nxfonts/Makefile.sources </code>to create your customized font data set at build time. </p> @@ -2876,7 +2876,7 @@ endif #endif </pre></ul> <p> - Where <code>nxfonts_myfont.h<code> is the NuttX font file that we generated in + Where <code>nxfonts_myfont.h</code> is the NuttX font file that we generated in step 2 using the <i>bdf-converter</i> tool. </p> <li> |