|
@@ -1093,8 +1093,8 @@ void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSiz
|
|
|
|
|
|
// Character destination rectangle on screen
|
|
// Character destination rectangle on screen
|
|
// NOTE: We consider glyphPadding on drawing
|
|
// NOTE: We consider glyphPadding on drawing
|
|
- Rectangle dstRec = { (int)position.x + font.glyphs[index].offsetX*scaleFactor - (float)font.glyphPadding*scaleFactor,
|
|
|
|
- (int)position.y + font.glyphs[index].offsetY*scaleFactor - (float)font.glyphPadding*scaleFactor,
|
|
|
|
|
|
+ Rectangle dstRec = { position.x + font.glyphs[index].offsetX*scaleFactor - (float)font.glyphPadding*scaleFactor,
|
|
|
|
+ position.y + font.glyphs[index].offsetY*scaleFactor - (float)font.glyphPadding*scaleFactor,
|
|
(font.recs[index].width + 2.0f*font.glyphPadding)*scaleFactor,
|
|
(font.recs[index].width + 2.0f*font.glyphPadding)*scaleFactor,
|
|
(font.recs[index].height + 2.0f*font.glyphPadding)*scaleFactor };
|
|
(font.recs[index].height + 2.0f*font.glyphPadding)*scaleFactor };
|
|
|
|
|