Should fix Travis builds
This commit is contained in:
+6
-1
@@ -393,8 +393,13 @@ endif
|
||||
|
||||
IMG2LBM = -$(PYTHON) ../util/img2lbm.py
|
||||
BIN2LBM = -$(PYTHON) ../util/bin2lbm.py
|
||||
FONT2PNG = -$(PYTHON) ../util/font2png.py
|
||||
ifeq ($(OS), Windows_NT)
|
||||
FONT2PNG = -$(PYTHON) ../util/font2png.py
|
||||
else
|
||||
FONT2PNG = -xvfb-run --server-args="-screen 0 1024x768x24" $(PYTHON) ../util/font2png.py
|
||||
endif
|
||||
TRANSLATE = -$(PYTHON) ../util/translate.py
|
||||
|
||||
VERSION = 2.2.0$(OPENTX_VERSION_SUFFIX)
|
||||
|
||||
THIRDPARTY = thirdparty
|
||||
|
||||
@@ -44,7 +44,9 @@ def createFontBitmap(filename, fontname, fontsize, fontbold, foreground, backgro
|
||||
font.setPixelSize(fontsize)
|
||||
font.setBold(fontbold)
|
||||
font.setHintingPreference(QtGui.QFont.PreferNoHinting)
|
||||
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
|
||||
metrics = QtGui.QFontMetrics(font)
|
||||
|
||||
width = getFontWidth(fontsize, metrics)
|
||||
top, bottom = getFontTopBottom(fontsize, metrics)
|
||||
extraImage = QtGui.QImage("fonts/extra_%dpx.png" % (fontsize+1))
|
||||
|
||||
Reference in New Issue
Block a user