attempt to load Courier if the requested font-family fails to load

This commit is contained in:
Seth Alves 2015-02-17 15:12:24 -08:00
parent 9fcb7591e6
commit ef2d386c75

View file

@ -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";