浏览代码

Fix the Japanese glyph range; include Punctuations

ref. #156 https://github.com/ocornut/imgui/issues/156
Usagi Ito 10 年之前
父节点
当前提交
c9bfd71e1a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -7611,7 +7611,7 @@ const ImWchar*  ImFontAtlas::GetGlyphRangesJapanese()
     static ImWchar ranges[10 + IM_ARRAYSIZE(offsets_from_0x4E00)*2 + 1] =
     {
         0x0020, 0x00FF, // Basic Latin + Latin Supplement
-        0x3000, 0x3000, // Ideographic Space
+        0x3000, 0x303F, // Ideographic Space, Japanese Punctuations
         0x3040, 0x30FF, // Hiragana, Katakana
         0x31F0, 0x31FF, // Katakana Phonetic Extensions
         0xFF00, 0xFFEF, // Half-width characters