diff options
author | Lars Muldjord <muldjordlars@gmail.com> | 2016-11-22 17:34:42 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-12-02 16:57:44 +0100 |
commit | 47252eeb1f757f7c9ab2f5c412a9aeee9c6bb3d0 (patch) | |
tree | 92f485afa7e20b0ddca3b15167c4c90c6b6c4646 /tools | |
parent | c5263e3f495fb2fc06700cd2f7e71e80708c845f (diff) |
Now renders font twice in the same place to make it stand more out
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fontgen/generator.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/fontgen/generator.cc b/tools/fontgen/generator.cc index 8ad179b..cb83974 100644 --- a/tools/fontgen/generator.cc +++ b/tools/fontgen/generator.cc @@ -132,6 +132,8 @@ void Generator::setHorizLimits(int &horizOffset, int &charWidth, p.setPen(QPen(QColor(0, 0, 0, 255))); p.setFont(font); + // Draw twice to make it clearer + p.drawText(maxSize / 2, maxSize / 2, QChar(curChar)); p.drawText(maxSize / 2, maxSize / 2, QChar(curChar)); horizOffset = getHorizOffset(image); |