瀏覽代碼

Reviewed example for clarity

pull/579/head
Ray 6 年之前
父節點
當前提交
7d7c6fc42d
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      examples/text/text_font_sdf.c
  2. 二進制
      examples/text/text_font_sdf.png

+ 3
- 0
examples/text/text_font_sdf.c 查看文件

@ -98,6 +98,9 @@ int main()
DrawTextEx(fontDefault, msg, fontPosition, fontSize, 0, BLACK);
DrawTexture(fontDefault.texture, 10, 10, BLACK);
}
if (currentFont == 1) DrawText("SDF!", 320, 20, 80, RED);
else DrawText("default font", 315, 40, 30, GRAY);
DrawText("FONT SIZE: 16.0", GetScreenWidth() - 240, 20, 20, DARKGRAY);
DrawText(FormatText("RENDER SIZE: %02.02f", fontSize), GetScreenWidth() - 240, 50, 20, DARKGRAY);

二進制
examples/text/text_font_sdf.png 查看文件

Before After
Width: 800  |  Height: 450  |  Size: 51 KiB Width: 800  |  Height: 450  |  Size: 51 KiB

Loading…
取消
儲存