ImFontAtlas#getGlyphRanges*** returns invalid length of short array. This causes an problem that by using this method we can't render Japanese, Chinese and so on. This bug comes from the bug of RETURN_GLYPH_2_SHORT. The size comes from sizeof(glyphs), but glyphs is ImWchar*, which is pointer, so it returns the size of pointer not array length.
Fixes #131
Fixes #70
Type of change
[ ] Minor changes or tweaks (quality of life stuff)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
ImFontAtlas#getGlyphRanges***
returns invalid length of short array. This causes an problem that by using this method we can't render Japanese, Chinese and so on. This bug comes from the bug of RETURN_GLYPH_2_SHORT. The size comes from sizeof(glyphs), but glyphs is ImWchar*, which is pointer, so it returns the size of pointer not array length.Fixes #131 Fixes #70
Type of change