SGPropertyNode *fontnode = props->getNode("font");
if (fontnode) {
- FGFontCache *fc = _gui->get_fontcache();
+ FGFontCache *fc = globals->get_fontcache();
_font = fc->get(fontnode);
} else {
_font = _gui->getDefaultFont();
object->setBorderThickness( props->getIntValue("border", 2) );
if ( SGPropertyNode *nft = props->getNode("font", false) ) {
- FGFontCache *fc = _gui->get_fontcache();
+ FGFontCache *fc = globals->get_fontcache();
puFont *lfnt = fc->get(nft);
object->setLabelFont(*lfnt);
} else {