Here's a sample code block for my font library. It does allow you to use more then one font.
-- setup fonts const byte FONT_MORE_THEN_ONE = TRUE -- use more then one font const byte FONT_BIT_DIRECTION = FONT_TOP_RIGHT_HORIZONTAL -- see constants_jallib.jal const byte FONT_AUTO_WRAP = TRUE -- auto wrap text at end of screen -- include glcd_font -- include the font library -- -- choose some fonts alias FONT_1 is FONT_8x12_TOP_RIGHT_HORIZONTAL_NO_NAME alias FONT_1_WIDTH is FONT_8x12_WIDTH alias FONT_1_HEIGHT is FONT_8x12_HEIGHT -- -- set your current font font_number = 1 -- select your font number font_width = FONT_1_WIDTH -- must match current font width font_height = FONT_1_HEIGHT -- must match current font height I currently use a font draw procedure within my GLCD specific library since I write pixels in blocks. One generic procedure may be created to draw text pixel by pixel, instead of in blocks like my GLCD since my glcd can also draw pixel by pixel (slower). Matt. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
