mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +02:00
Advance with _leading on y
This commit is contained in:
parent
f3d3bd7bec
commit
26dd067982
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ void Font3D::drawString(gpu::Batch& batch, float x, float y, const QString& str,
|
|||
}
|
||||
if (isNewLine || forceNewLine) {
|
||||
// Character return, move the advance to a new line
|
||||
advance = glm::vec2(x, advance.y - _fontSize);
|
||||
advance = glm::vec2(x, advance.y - _leading);
|
||||
|
||||
if (isNewLine) {
|
||||
// No need to draw anything, go directly to next token
|
||||
|
|
Loading…
Reference in a new issue