summaryrefslogtreecommitdiffhomepage
path: root/src/text.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-08-16 23:23:16 +0200
committerRay <[email protected]>2021-08-16 23:23:16 +0200
commita5beb940f8f08d91b33634ca7dc056f07f60f20c (patch)
tree00814a4378f05794709171f14fae261ef31dff98 /src/text.c
parentf3385b6ad22af53245e20ab3dda10853e1ee95a4 (diff)
downloadraylib-a5beb940f8f08d91b33634ca7dc056f07f60f20c.tar.gz
raylib-a5beb940f8f08d91b33634ca7dc056f07f60f20c.zip
Remove trailing spaces
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/text.c b/src/text.c
index 9d336f21..66a08eb1 100644
--- a/src/text.c
+++ b/src/text.c
@@ -899,9 +899,9 @@ void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin,
rlTranslatef(position.x, position.y, 0.0f);
rlRotatef(rotation, 0.0f, 0.0f, 1.0f);
rlTranslatef(-origin.x, -origin.y, 0.0f);
-
+
DrawTextEx(font, text, (Vector2){ 0.0f, 0.0f }, fontSize, spacing, tint);
-
+
rlPopMatrix();
}
@@ -1002,7 +1002,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
}
// Get index position for a unicode character on font
-// NOTE: If codepoint is not found in the font it fallbacks to '?'
+// NOTE: If codepoint is not found in the font it fallbacks to '?'
int GetGlyphIndex(Font font, int codepoint)
{
#ifndef GLYPH_NOTFOUND_CHAR_FALLBACK
@@ -1030,24 +1030,24 @@ int GetGlyphIndex(Font font, int codepoint)
}
// Get glyph font info data for a codepoint (unicode character)
-// NOTE: If codepoint is not found in the font it fallbacks to '?'
+// NOTE: If codepoint is not found in the font it fallbacks to '?'
GlyphInfo GetGlyphInfo(Font font, int codepoint)
{
GlyphInfo info = { 0 };
-
+
info = font.chars[GetGlyphIndex(font, codepoint)];
-
+
return info;
}
// Get glyph rectangle in font atlas for a codepoint (unicode character)
-// NOTE: If codepoint is not found in the font it fallbacks to '?'
+// NOTE: If codepoint is not found in the font it fallbacks to '?'
Rectangle GetGlyphAtlasRec(Font font, int codepoint)
{
Rectangle rec = { 0 };
-
+
rec = font.recs[GetGlyphIndex(font, codepoint)];
-
+
return rec;
}