mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-12 16:56:52 +02:00
attempt to load Courier if the requested font-family fails to load
This commit is contained in:
parent
9fcb7591e6
commit
ef2d386c75
1 changed files with 1 additions and 0 deletions
|
@ -513,6 +513,7 @@ TextRenderer::TextRenderer(const char* family, float pointSize, int weight,
|
||||||
_effectType(effect), _effectThickness(effectThickness), _pointSize(pointSize), _color(color), _font(loadFont(family)) {
|
_effectType(effect), _effectThickness(effectThickness), _pointSize(pointSize), _color(color), _font(loadFont(family)) {
|
||||||
if (!_font) {
|
if (!_font) {
|
||||||
qWarning() << "Unable to load font with family " << family;
|
qWarning() << "Unable to load font with family " << family;
|
||||||
|
_font = loadFont("Courier");
|
||||||
}
|
}
|
||||||
if (1 != _effectThickness) {
|
if (1 != _effectThickness) {
|
||||||
qWarning() << "Effect thickness not current supported";
|
qWarning() << "Effect thickness not current supported";
|
||||||
|
|
Loading…
Reference in a new issue