From 441679d9d4365a1c4c1f365b40bf6080f3ecac29 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 26 Feb 2015 18:51:51 +0000 Subject: [PATCH] Fixed GetGlyphRangesJapanese() actually missing Katakanas glyphs. --- imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index 2141edc0e..b41e6877b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7379,7 +7379,7 @@ const ImWchar* ImFontAtlas::GetGlyphRangesChinese() static const ImWchar ranges[] = { 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x3040, 0x309F, // Hiragana, Katakana + 0x3040, 0x30FF, // Hiragana, Katakana 0xFF00, 0xFFEF, // Half-width characters 0x4e00, 0x9FAF, // CJK Ideograms 0, @@ -7430,7 +7430,7 @@ const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() static ImWchar ranges[6 + 1 + IM_ARRAYSIZE(offsets_from_0x4E00)*2] = { 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x3040, 0x309F, // Hiragana, Katakana + 0x3040, 0x30FF, // Hiragana, Katakana 0xFF00, 0xFFEF, // Half-width characters 0, };