浏览代码

WARNING: REMOVED: Default font fallback

pull/4109/head
Ray 7 个月前
父节点
当前提交
0979eafa84
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. +1
    -5
      src/rtext.c

+ 1
- 5
src/rtext.c 查看文件

@ -362,11 +362,7 @@ Font LoadFont(const char *fileName)
UnloadImage(image);
}
if (font.texture.id == 0)
{
TRACELOG(LOG_WARNING, "FONT: [%s] Failed to load font texture -> Using default font", fileName);
font = GetFontDefault();
}
if (font.texture.id == 0) TRACELOG(LOG_WARNING, "FONT: [%s] Failed to load font texture -> Using default font", fileName);
else
{
SetTextureFilter(font.texture, TEXTURE_FILTER_POINT); // By default, we set point filter (the best performance)

正在加载...
取消
保存