Increase non-UTF8 font support to 0 to 255 rather than just the true ascii set

This commit is contained in:
inmarket 2017-01-20 09:23:06 +10:00
parent b90055d2f9
commit 5502aef3e5
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ FEATURE: Added GDISP_IMAGE_PNG_FILE_BUFFER_SIZE configuration option
FEATURE: Added GDISP_IMAGE_PNG_Z_BUFFER_SIZE configuration option FEATURE: Added GDISP_IMAGE_PNG_Z_BUFFER_SIZE configuration option
FEATURE: Added GDISP_IMAGE_GIF_BLIT_BUFFER_SIZE configuration option FEATURE: Added GDISP_IMAGE_GIF_BLIT_BUFFER_SIZE configuration option
FIX: Fixed extra dots when drawing anti-aliased fonts with wordwrap FIX: Fixed extra dots when drawing anti-aliased fonts with wordwrap
FEATURE: Increase non-UTF8 font support to 0 to 255 rather than just the true ascii set
*** Release 2.7 *** *** Release 2.7 ***

View File

@ -33,7 +33,7 @@ uint8_t mf_render_character(const struct mf_font_s *font,
void *state) void *state)
{ {
uint8_t width; uint8_t width;
width = font->render_character(font, x0, y0, character, callback, state); width = font->render_character(font, x0, y0, MFCHAR2UINT16(character), callback, state);
if (!width) if (!width)
{ {