Merge pull request #946 from friedbunny/931-fullwidth-block

Fix end of acceptable glyph/unicode range
This commit is contained in:
Mike Morris
2015-03-18 11:47:47 -04:00

View File

@@ -7,7 +7,7 @@ GlyphRange getGlyphRange(char32_t glyph) {
unsigned start = (glyph/256) * 256;
unsigned end = (start + 255);
if (start > 65280) start = 65280;
if (end > 65533) end = 65533;
if (end > 65535) end = 65535;
return { start, end };
}