From 74fff8dc62024d7d81432cd93631d5b9cf15d0ef Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Sun, 13 Dec 2020 12:34:53 +0000 Subject: [PATCH] (RGUI) Add support for CJK punctuation glyphs --- gfx/drivers_font_renderer/bitmapfont_10x10.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/drivers_font_renderer/bitmapfont_10x10.c b/gfx/drivers_font_renderer/bitmapfont_10x10.c index 18c36f6cf5..0d44faa44f 100644 --- a/gfx/drivers_font_renderer/bitmapfont_10x10.c +++ b/gfx/drivers_font_renderer/bitmapfont_10x10.c @@ -45,8 +45,8 @@ #define FONT_10X10_GLYPH_MAX_CHN 0x9FFF #define FONT_10X10_FILE_JPN "bitmap10x10_jpn.bin" -#define FONT_10X10_SIZE_JPN 2496 -#define FONT_10X10_GLYPH_MIN_JPN 0x3040 +#define FONT_10X10_SIZE_JPN 3328 +#define FONT_10X10_GLYPH_MIN_JPN 0x3000 #define FONT_10X10_GLYPH_MAX_JPN 0x30FF #define FONT_10X10_FILE_KOR "bitmap10x10_kor.bin" @@ -132,7 +132,7 @@ bitmapfont_lut_t *bitmapfont_10x10_load(unsigned language) /* Ensure that we have the correct number * of bytes */ - if (len < font_size) + if (len != font_size) { RARCH_WARN("[bitmap 10x10] Font file has invalid size: %s\n", font_path); goto error;