summaryrefslogtreecommitdiff
path: root/tools/fontgen/generator.h
diff options
context:
space:
mode:
authorLars Muldjord <muldjordlars@gmail.com>2016-11-22 17:08:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-12-02 16:57:25 +0100
commit8b68faccfcbe3564e93f018d9aefe62e289c1681 (patch)
tree3851c2279c5a301577be44d5d05f09923f8d61e0 /tools/fontgen/generator.h
parentdfae8c7aad33a352f882c44ef2a9cc83f2746207 (diff)
Now renders entire font, but chars are not latin1 at the moment
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