From 3eaface3778a339fdf1d9cbb5619cff623d0e6f8 Mon Sep 17 00:00:00 2001 From: teascade Date: Wed, 16 Jan 2019 22:54:41 +0200 Subject: [PATCH] Change yoffset calculation to be similar to BMFont --- src/exporters/simpleexporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exporters/simpleexporter.cpp b/src/exporters/simpleexporter.cpp index 26bd4a7..f43247e 100644 --- a/src/exporters/simpleexporter.cpp +++ b/src/exporters/simpleexporter.cpp @@ -30,7 +30,7 @@ bool SimpleExporter::Export(QByteArray &out) out.append(QString::number(c.placeW).toUtf8()).append(' '); out.append(QString::number(c.placeH).toUtf8()).append(' '); out.append(QString::number(c.offsetX).toUtf8()).append(' '); - out.append(QString::number(height - c.offsetY).toUtf8()).append(' '); + out.append(QString::number(metrics().ascender - c.offsetY).toUtf8()).append(' '); out.append(QString::number(c.advance).toUtf8()).append(' '); out.append('\n'); }