summaryrefslogtreecommitdiff
path: root/tools/fontgen/generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fontgen/generator.h')
-rw-r--r--tools/fontgen/generator.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/fontgen/generator.h b/tools/fontgen/generator.h
index 64b59df..bbf156f 100644
--- a/tools/fontgen/generator.h
+++ b/tools/fontgen/generator.h
@@ -46,7 +46,18 @@ private:
QLineEdit *fontLineEdit;
QLineEdit *sizeLineEdit;
QLineEdit *outputLineEdit;
-
+
+ int maxSize;
+ QFont font;
+
+ void setVertLimits(int &vertOffset, int &fontHeight);
+ int getVertOffset(const QImage &image);
+ int getFontHeight(const QImage &image, const int &vertOffset);
+
+ void setHorizLimits(int &horizOffset, int &fontHeight,
+ const int &curChar, QImage &image);
+ int getHorizOffset(const QImage &image);
+ int getFontWidth(const QImage &image, const int &horizOffset);
};
#endif // _GENERATOR_H