mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 08:18:05 +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)) {
|
||||
if (!_font) {
|
||||
qWarning() << "Unable to load font with family " << family;
|
||||
_font = loadFont("Courier");
|
||||
}
|
||||
if (1 != _effectThickness) {
|
||||
qWarning() << "Effect thickness not current supported";
|
||||
|
|
Loading…
Reference in a new issue