diff options
| author | raysan5 <[email protected]> | 2017-04-17 16:42:01 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-04-17 16:42:01 +0200 |
| commit | 881f134f4d2fb4419d50382284e19b4f8ca4660e (patch) | |
| tree | 065658f8b462dd76837f849450bdd3895134121a /docs/examples/src/text/text_ttf_loading.c | |
| parent | 3e082f1d6251e366d7be6019d0950ea7a9e6b5b4 (diff) | |
| download | raylib-881f134f4d2fb4419d50382284e19b4f8ca4660e.tar.gz raylib-881f134f4d2fb4419d50382284e19b4f8ca4660e.zip | |
Review and recompile web examples
Diffstat (limited to 'docs/examples/src/text/text_ttf_loading.c')
| -rw-r--r-- | docs/examples/src/text/text_ttf_loading.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/src/text/text_ttf_loading.c b/docs/examples/src/text/text_ttf_loading.c index 33cda7f5..4e490399 100644 --- a/docs/examples/src/text/text_ttf_loading.c +++ b/docs/examples/src/text/text_ttf_loading.c @@ -25,13 +25,13 @@ int main() // NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required) // TTF SpriteFont loading with custom generation parameters - SpriteFont font = LoadSpriteFontTTF("resources/fonts/KAISG.ttf", 96, 0, 0); + SpriteFont font = LoadSpriteFontTTF("resources/KAISG.ttf", 96, 0, 0); // Generate mipmap levels to use trilinear filtering // NOTE: On 2D drawing it won't be noticeable, it looks like FILTER_BILINEAR GenTextureMipmaps(&font.texture); - float fontSize = font.size; + float fontSize = font.baseSize; Vector2 fontPosition = { 40, screenHeight/2 + 50 }; Vector2 textSize; |
