mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-14 03:15:17 +00:00
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)
|
||||
{
|
||||
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:
|
||||
{
|
||||
if (cp != 32)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user