From Serge Lages, introduce readRef*File() methods which pass back ref_ptr<> rather than C pointers.
This commit is contained in:
@@ -86,7 +86,7 @@ void Text::setFont(Font* font)
|
||||
|
||||
void Text::setFont(const std::string& fontfile)
|
||||
{
|
||||
setFont(readFontFile(fontfile));
|
||||
setFont(readRefFontFile(fontfile).get());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user