Documentation update

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3814 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-07-23 14:27:01 +00:00
parent 2ee238e14b
commit 4a623ea78e

View File

@ -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 &quot;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>