diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-04 16:45:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-04 16:45:06 +0000 |
commit | 6fd4a801b4330342cfdee6f44a81d64b41785c74 (patch) | |
tree | 281112b23ca6848793245604ba590feecc87743c /nuttx/graphics/nxfonts/nxfonts_bitmaps.c | |
parent | 05d31bd06816565ec8af26885ecaa26851851e18 (diff) | |
download | px4-nuttx-6fd4a801b4330342cfdee6f44a81d64b41785c74.tar.gz px4-nuttx-6fd4a801b4330342cfdee6f44a81d64b41785c74.tar.bz2 px4-nuttx-6fd4a801b4330342cfdee6f44a81d64b41785c74.zip |
Add font test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1413 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxfonts/nxfonts_bitmaps.c')
-rw-r--r-- | nuttx/graphics/nxfonts/nxfonts_bitmaps.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/nuttx/graphics/nxfonts/nxfonts_bitmaps.c b/nuttx/graphics/nxfonts/nxfonts_bitmaps.c index 60c543100..ff69f786a 100644 --- a/nuttx/graphics/nxfonts/nxfonts_bitmaps.c +++ b/nuttx/graphics/nxfonts/nxfonts_bitmaps.c @@ -41,6 +41,8 @@ #include <sys/types.h> #include <nuttx/nxfonts.h> +#include "nxfonts_internal.h" + /* Pick the fontset */ #ifdef CONFIG_NXFONT_SANS @@ -1622,26 +1624,28 @@ NXFONT_DEFMETRIC(255), struct nx_fontset_s g_7bitfonts = { - NXFONT_MAXHEIGHT, /* Max. height of a glyph in rows */ - NXFONT_MAXWIDTH, /* Max. width of a glyph in pixels */ - NXFONT_MIN7BIT, /* First font code */ - NXFONT_N7BITFONTS, /* Number of bitmap fonts */ - NXFONT_SPACEWIDTH, /* The width of a space in pixels */ - g_7bitmaps /* List of fonts */ + NXFONT_MIN7BIT, /* First glyph code */ + NXFONT_N7BITFONTS, /* Number of bitmap glyphs */ + g_7bitmaps /* List of glyphs */ }; #if CONFIG_NXFONTS_CHARBITS >= 8 struct nx_fontset_s g_8bitfonts = { - NXFONT_MAXHEIGHT, /* Max. height of a glyph in rows */ - NXFONT_MAXWIDTH, /* Max. width of a glyph in pixels */ - NXFONT_MIN8BIT, /* First font code */ - NXFONT_N8BITFONTS, /* Number of bitmap fonts */ - NXFONT_SPACEWIDTH, /* The width of a space in pixels */ - g_8bitmaps /* List of fonts */ + NXFONT_MIN8BIT, /* First glyph code */ + NXFONT_N8BITFONTS, /* Number of bitmap glyphs */ + g_8bitmaps /* List of glyphs */ }; #endif +struct nx_font_s g_fonts = +{ + NXFONT_MAXHEIGHT, /* Max. height of a glyph in rows */ + NXFONT_MAXWIDTH, /* Max. width of a glyph in pixels */ + CONFIG_NXFONTS_CHARBITS, /* Max number of bits per character code */ + NXFONT_SPACEWIDTH, /* The width of a space in pixels */ +}; + /**************************************************************************** * Private Functions ****************************************************************************/ |