apply custom widget fonts also to the legend, so that they show
up in list/textbox etc. (This should really be separately settable via style definition, but it's very rarely used and a change now is probably not worth it as we'll probably switch to osgWidget, anyway.)
This commit is contained in:
parent
c9e8112a81
commit
41da00105c
1 changed files with 2 additions and 1 deletions
|
@ -715,6 +715,7 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props)
|
||||||
FGFontCache *fc = globals->get_fontcache();
|
FGFontCache *fc = globals->get_fontcache();
|
||||||
puFont *lfnt = fc->get(nft);
|
puFont *lfnt = fc->get(nft);
|
||||||
object->setLabelFont(*lfnt);
|
object->setLabelFont(*lfnt);
|
||||||
|
object->setLegendFont(*lfnt);
|
||||||
} else {
|
} else {
|
||||||
object->setLabelFont(*_font);
|
object->setLabelFont(*_font);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue