mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 08:29:00 +02:00
- updated to properly use fontconfig for finding fonts
This commit is contained in:
@@ -123,9 +123,9 @@ void TextFTGL::cleanupFont() {
|
||||
fontFile = NULL;
|
||||
}
|
||||
|
||||
void TextFTGL::init(string fontName, int fontSize) {
|
||||
void TextFTGL::init(string fontName, string fontFamilyName, int fontSize) {
|
||||
cleanupFont();
|
||||
fontFile = findFont(fontName.c_str());
|
||||
fontFile = findFont(fontName.c_str(),fontFamilyName.c_str());
|
||||
|
||||
//ftFont = new FTBufferFont(fontFile);
|
||||
//ftFont = new FTGLPixmapFont(fontFile);
|
||||
|
Reference in New Issue
Block a user