Update rtext.c
This commit is contained in:
parent
8516750975
commit
e4baf682ab
|
|
@ -700,7 +700,11 @@ GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSiz
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case FONT_DEFAULT:
|
case FONT_DEFAULT:
|
||||||
case FONT_BITMAP: glyphs[k].image.data = stbtt_GetCodepointBitmap(&fontInfo, scaleFactor, scaleFactor, cp, &cpWidth, &cpHeight, &glyphs[k].offsetX, &glyphs[k].offsetY); break;
|
case FONT_BITMAP:
|
||||||
|
{
|
||||||
|
glyphs[k].image.data = stbtt_GetCodepointBitmap(&fontInfo, scaleFactor, scaleFactor, cp,
|
||||||
|
&cpWidth, &cpHeight, &glyphs[k].offsetX, &glyphs[k].offsetY);
|
||||||
|
} break;
|
||||||
case FONT_SDF:
|
case FONT_SDF:
|
||||||
{
|
{
|
||||||
if (cp != 32)
|
if (cp != 32)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user