diff options
| author | Ray <[email protected]> | 2018-07-15 20:24:18 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-07-15 20:24:18 +0200 |
| commit | 7d7c6fc42dd4ac132fc2645d765df65ce3271197 (patch) | |
| tree | 830f6656ce233a07030258d136b9a2acd131b23a /examples/text/text_font_sdf.c | |
| parent | dfc4baaa353d4aaa46068016f69dce44ad754ecb (diff) | |
| download | raylib-7d7c6fc42dd4ac132fc2645d765df65ce3271197.tar.gz raylib-7d7c6fc42dd4ac132fc2645d765df65ce3271197.zip | |
Reviewed example for clarity
Diffstat (limited to 'examples/text/text_font_sdf.c')
| -rw-r--r-- | examples/text/text_font_sdf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/text/text_font_sdf.c b/examples/text/text_font_sdf.c index 5f7ad5fa..c23a1e2e 100644 --- a/examples/text/text_font_sdf.c +++ b/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); |
