mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- updated findfont method to be shared and to use more default fonts if main ones are not found
This commit is contained in:
@@ -139,6 +139,8 @@ public:
|
|||||||
|
|
||||||
Font3D *ConvertFont2DTo3D(Font2D *font);
|
Font3D *ConvertFont2DTo3D(Font2D *font);
|
||||||
|
|
||||||
|
const char* findFont(const char *firstFontToTry=NULL);
|
||||||
|
|
||||||
}}//end namespace
|
}}//end namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -48,11 +48,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
FTFont *ftFont;
|
FTFont *ftFont;
|
||||||
//FTGLPixmapFont *ftFont;
|
|
||||||
const char* fontFile;
|
const char* fontFile;
|
||||||
|
|
||||||
const char* findFont(const char *firstFontToTry=NULL);
|
|
||||||
|
|
||||||
void cleanupFont();
|
void cleanupFont();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -54,20 +54,16 @@ public:
|
|||||||
virtual float LineHeight(const wchar_t* = L" ", const int = -1);
|
virtual float LineHeight(const wchar_t* = L" ", const int = -1);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//FTFont *ftFont;
|
|
||||||
VertexBuffer *buffer;
|
VertexBuffer *buffer;
|
||||||
TextureAtlas *atlas;
|
TextureAtlas *atlas;
|
||||||
TextureFont *font;
|
TextureFont *font;
|
||||||
//TextureGlyph *glyph;
|
|
||||||
FontManager *manager;
|
FontManager *manager;
|
||||||
//Markup markup;
|
|
||||||
int fontFaceSize;
|
int fontFaceSize;
|
||||||
|
|
||||||
string fontName;
|
string fontName;
|
||||||
const char* fontFile;
|
const char* fontFile;
|
||||||
|
|
||||||
const char* findFont(const char *firstFontToTry=NULL);
|
|
||||||
|
|
||||||
void cleanupFont();
|
void cleanupFont();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -14,19 +14,18 @@
|
|||||||
#include "conversion.h"
|
#include "conversion.h"
|
||||||
|
|
||||||
#ifdef USE_FTGL
|
#ifdef USE_FTGL
|
||||||
|
|
||||||
#include "font_textFTGL.h"
|
#include "font_textFTGL.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
using namespace Shared::Util;
|
|
||||||
using namespace Shared::Graphics::Gl;
|
using namespace Shared::Graphics::Gl;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_FREETYPEGL
|
#ifdef USE_FREETYPEGL
|
||||||
|
|
||||||
#include "font_text_freetypegl.h"
|
#include "font_text_freetypegl.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_FONTCONFIG
|
||||||
|
#include <fontconfig/fontconfig.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@@ -264,4 +263,138 @@ Font3D::Font3D(FontTextHandlerType type) : Font(type) {
|
|||||||
depth= 10.f;
|
depth= 10.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* findFont(const char *firstFontToTry) {
|
||||||
|
const char* font = NULL;
|
||||||
|
const char* path = NULL;
|
||||||
|
|
||||||
|
#define CHECK_FONT_PATH(filename) \
|
||||||
|
{ \
|
||||||
|
path = filename; \
|
||||||
|
if( !font && path && fileExists(path) == true ) \
|
||||||
|
font = strdup(path); \
|
||||||
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found font file [%s]\n",font); \
|
||||||
|
}
|
||||||
|
|
||||||
|
string tryFont = "";
|
||||||
|
if(firstFontToTry) {
|
||||||
|
tryFont = firstFontToTry;
|
||||||
|
#ifdef WIN32
|
||||||
|
replaceAll(tryFont, "/", "\\");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
CHECK_FONT_PATH(tryFont.c_str())
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get user-specified font path
|
||||||
|
if(getenv("MEGAGLEST_FONT") != NULL) {
|
||||||
|
tryFont = getenv("MEGAGLEST_FONT");
|
||||||
|
#ifdef WIN32
|
||||||
|
replaceAll(tryFont, "/", "\\");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
CHECK_FONT_PATH(tryFont.c_str())
|
||||||
|
}
|
||||||
|
|
||||||
|
string data_path = Text::DEFAULT_FONT_PATH;
|
||||||
|
string defaultFont = data_path + "data/core/fonts/LinBiolinum_RB.ttf";//LinBiolinum_Re-0.6.4.ttf
|
||||||
|
tryFont = defaultFont;
|
||||||
|
#ifdef WIN32
|
||||||
|
replaceAll(tryFont, "/", "\\");
|
||||||
|
#endif
|
||||||
|
CHECK_FONT_PATH(tryFont.c_str())
|
||||||
|
|
||||||
|
#ifdef FONT_PATH
|
||||||
|
// Get distro-specified font path
|
||||||
|
CHECK_FONT_PATH(FONT_PATH)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_FONTCONFIG
|
||||||
|
// Get default font via fontconfig
|
||||||
|
if( !font && FcInit() ) {
|
||||||
|
FcResult result;
|
||||||
|
FcFontSet *fs;
|
||||||
|
FcPattern* pat;
|
||||||
|
FcPattern *match;
|
||||||
|
|
||||||
|
/*
|
||||||
|
TRANSLATORS: If using the FTGL backend, this should be the font
|
||||||
|
name of a font that contains all the Unicode characters in use in
|
||||||
|
your translation.
|
||||||
|
*/
|
||||||
|
pat = FcNameParse((FcChar8 *)"Gothic Uralic");
|
||||||
|
FcConfigSubstitute(0, pat, FcMatchPattern);
|
||||||
|
|
||||||
|
FcPatternDel(pat, FC_WEIGHT);
|
||||||
|
FcPatternAddInteger(pat, FC_WEIGHT, FC_WEIGHT_BOLD);
|
||||||
|
|
||||||
|
FcDefaultSubstitute(pat);
|
||||||
|
fs = FcFontSetCreate();
|
||||||
|
match = FcFontMatch(0, pat, &result);
|
||||||
|
|
||||||
|
if (match) FcFontSetAdd(fs, match);
|
||||||
|
if (pat) FcPatternDestroy(pat);
|
||||||
|
if(fs) {
|
||||||
|
FcChar8* file;
|
||||||
|
if( FcPatternGetString (fs->fonts[0], FC_FILE, 0, &file) == FcResultMatch ) {
|
||||||
|
CHECK_FONT_PATH((const char*)file)
|
||||||
|
}
|
||||||
|
FcFontSetDestroy(fs);
|
||||||
|
}
|
||||||
|
FcFini();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
||||||
|
|
||||||
|
// Check a couple of common paths for Gothic Uralic/bold as a last resort
|
||||||
|
// Debian
|
||||||
|
/*
|
||||||
|
TRANSLATORS: If using the FTGL backend, this should be the path of a bold
|
||||||
|
font that contains all the Unicode characters in use in your translation.
|
||||||
|
If the font is available in Debian it should be the Debian path.
|
||||||
|
*/
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
||||||
|
/*
|
||||||
|
TRANSLATORS: If using the FTGL backend, this should be the path of a
|
||||||
|
font that contains all the Unicode characters in use in your translation.
|
||||||
|
If the font is available in Debian it should be the Debian path.
|
||||||
|
*/
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothu___.ttf")
|
||||||
|
// Mandrake
|
||||||
|
/*
|
||||||
|
TRANSLATORS: If using the FTGL backend, this should be the path of a bold
|
||||||
|
font that contains all the Unicode characters in use in your translation.
|
||||||
|
If the font is available in Mandrake it should be the Mandrake path.
|
||||||
|
*/
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHUB__.TTF")
|
||||||
|
/*
|
||||||
|
TRANSLATORS: If using the FTGL backend, this should be the path of a
|
||||||
|
font that contains all the Unicode characters in use in your translation.
|
||||||
|
If the font is available in Mandrake it should be the Mandrake path.
|
||||||
|
*/
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHU___.TTF")
|
||||||
|
|
||||||
|
// Check the non-translated versions of the above
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothu___.ttf")
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHUB__.TTF")
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHU___.TTF")
|
||||||
|
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/linux-libertine/LinLibertine_Re.ttf")
|
||||||
|
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/freefont/FreeSerif.ttf")
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/freefont/FreeSans.ttf")
|
||||||
|
CHECK_FONT_PATH("/usr/share/fonts/truetype/freefont/FreeMono.ttf")
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
CHECK_FONT_PATH("c:\\windows\\fonts\\verdana.ttf")
|
||||||
|
CHECK_FONT_PATH("c:\\windows\\fonts\\tahoma.ttf")
|
||||||
|
CHECK_FONT_PATH("c:\\windows\\fonts\\arial.ttf")
|
||||||
|
CHECK_FONT_PATH("\\windows\\fonts\\arial.ttf")
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return font;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}}//end namespace
|
}}//end namespace
|
||||||
|
@@ -429,126 +429,6 @@ float TextFTGL::Advance(const wchar_t* str, const int len) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* TextFTGL::findFont(const char *firstFontToTry) {
|
|
||||||
const char* font = NULL;
|
|
||||||
const char* path = NULL;
|
|
||||||
|
|
||||||
#define CHECK_FONT_PATH(filename) \
|
|
||||||
{ \
|
|
||||||
path = filename; \
|
|
||||||
if( !font && path && fileExists(path) == true ) \
|
|
||||||
font = strdup(path); \
|
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found font file [%s]\n",font); \
|
|
||||||
}
|
|
||||||
|
|
||||||
string tryFont = "";
|
|
||||||
if(firstFontToTry) {
|
|
||||||
tryFont = firstFontToTry;
|
|
||||||
#ifdef WIN32
|
|
||||||
replaceAll(tryFont, "/", "\\");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CHECK_FONT_PATH(tryFont.c_str())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get user-specified font path
|
|
||||||
if(getenv("MEGAGLEST_FONT") != NULL) {
|
|
||||||
tryFont = getenv("MEGAGLEST_FONT");
|
|
||||||
#ifdef WIN32
|
|
||||||
replaceAll(tryFont, "/", "\\");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CHECK_FONT_PATH(tryFont.c_str())
|
|
||||||
}
|
|
||||||
|
|
||||||
string data_path = Text::DEFAULT_FONT_PATH;
|
|
||||||
string defaultFont = data_path + "data/core/fonts/LinBiolinum_RB.ttf";//LinBiolinum_Re-0.6.4.ttf
|
|
||||||
tryFont = defaultFont;
|
|
||||||
#ifdef WIN32
|
|
||||||
replaceAll(tryFont, "/", "\\");
|
|
||||||
#endif
|
|
||||||
CHECK_FONT_PATH(tryFont.c_str())
|
|
||||||
|
|
||||||
#ifdef FONT_PATH
|
|
||||||
// Get distro-specified font path
|
|
||||||
CHECK_FONT_PATH(FONT_PATH)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_FONTCONFIG
|
|
||||||
// Get default font via fontconfig
|
|
||||||
if( !font && FcInit() ) {
|
|
||||||
FcResult result;
|
|
||||||
FcFontSet *fs;
|
|
||||||
FcPattern* pat;
|
|
||||||
FcPattern *match;
|
|
||||||
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the font
|
|
||||||
name of a font that contains all the Unicode characters in use in
|
|
||||||
your translation.
|
|
||||||
*/
|
|
||||||
pat = FcNameParse((FcChar8 *)"Gothic Uralic");
|
|
||||||
FcConfigSubstitute(0, pat, FcMatchPattern);
|
|
||||||
|
|
||||||
FcPatternDel(pat, FC_WEIGHT);
|
|
||||||
FcPatternAddInteger(pat, FC_WEIGHT, FC_WEIGHT_BOLD);
|
|
||||||
|
|
||||||
FcDefaultSubstitute(pat);
|
|
||||||
fs = FcFontSetCreate();
|
|
||||||
match = FcFontMatch(0, pat, &result);
|
|
||||||
|
|
||||||
if (match) FcFontSetAdd(fs, match);
|
|
||||||
if (pat) FcPatternDestroy(pat);
|
|
||||||
if(fs) {
|
|
||||||
FcChar8* file;
|
|
||||||
if( FcPatternGetString (fs->fonts[0], FC_FILE, 0, &file) == FcResultMatch ) {
|
|
||||||
CHECK_FONT_PATH((const char*)file)
|
|
||||||
}
|
|
||||||
FcFontSetDestroy(fs);
|
|
||||||
}
|
|
||||||
FcFini();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
|
||||||
|
|
||||||
// Check a couple of common paths for Gothic Uralic/bold as a last resort
|
|
||||||
// Debian
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a bold
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Debian it should be the Debian path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Debian it should be the Debian path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothu___.ttf")
|
|
||||||
// Mandrake
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a bold
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Mandrake it should be the Mandrake path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHUB__.TTF")
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Mandrake it should be the Mandrake path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHU___.TTF")
|
|
||||||
|
|
||||||
// Check the non-translated versions of the above
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothu___.ttf")
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHUB__.TTF")
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHU___.TTF")
|
|
||||||
|
|
||||||
return font;
|
|
||||||
}
|
|
||||||
|
|
||||||
}}}//end namespace
|
}}}//end namespace
|
||||||
|
|
||||||
#endif // USE_FTGL
|
#endif // USE_FTGL
|
||||||
|
@@ -270,126 +270,6 @@ float TextFreetypeGL::LineHeight(const wchar_t* str, const int len) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* TextFreetypeGL::findFont(const char *firstFontToTry) {
|
|
||||||
const char* font = NULL;
|
|
||||||
const char* path = NULL;
|
|
||||||
|
|
||||||
#define CHECK_FONT_PATH(filename) \
|
|
||||||
{ \
|
|
||||||
path = filename; \
|
|
||||||
if( !font && path && fileExists(path) == true ) \
|
|
||||||
font = strdup(path); \
|
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Found font file [%s]\n",font); \
|
|
||||||
}
|
|
||||||
|
|
||||||
string tryFont = "";
|
|
||||||
if(firstFontToTry) {
|
|
||||||
tryFont = firstFontToTry;
|
|
||||||
#ifdef WIN32
|
|
||||||
replaceAll(tryFont, "/", "\\");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CHECK_FONT_PATH(tryFont.c_str())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get user-specified font path
|
|
||||||
if(getenv("MEGAGLEST_FONT") != NULL) {
|
|
||||||
tryFont = getenv("MEGAGLEST_FONT");
|
|
||||||
#ifdef WIN32
|
|
||||||
replaceAll(tryFont, "/", "\\");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CHECK_FONT_PATH(tryFont.c_str())
|
|
||||||
}
|
|
||||||
|
|
||||||
string data_path = Text::DEFAULT_FONT_PATH;
|
|
||||||
string defaultFont = data_path + "data/core/fonts/LinBiolinum_RB.ttf";//LinBiolinum_Re-0.6.4.ttf
|
|
||||||
tryFont = defaultFont;
|
|
||||||
#ifdef WIN32
|
|
||||||
replaceAll(tryFont, "/", "\\");
|
|
||||||
#endif
|
|
||||||
CHECK_FONT_PATH(tryFont.c_str())
|
|
||||||
|
|
||||||
#ifdef FONT_PATH
|
|
||||||
// Get distro-specified font path
|
|
||||||
CHECK_FONT_PATH(FONT_PATH)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_FONTCONFIG
|
|
||||||
// Get default font via fontconfig
|
|
||||||
if( !font && FcInit() ) {
|
|
||||||
FcResult result;
|
|
||||||
FcFontSet *fs;
|
|
||||||
FcPattern* pat;
|
|
||||||
FcPattern *match;
|
|
||||||
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the font
|
|
||||||
name of a font that contains all the Unicode characters in use in
|
|
||||||
your translation.
|
|
||||||
*/
|
|
||||||
pat = FcNameParse((FcChar8 *)"Gothic Uralic");
|
|
||||||
FcConfigSubstitute(0, pat, FcMatchPattern);
|
|
||||||
|
|
||||||
FcPatternDel(pat, FC_WEIGHT);
|
|
||||||
FcPatternAddInteger(pat, FC_WEIGHT, FC_WEIGHT_BOLD);
|
|
||||||
|
|
||||||
FcDefaultSubstitute(pat);
|
|
||||||
fs = FcFontSetCreate();
|
|
||||||
match = FcFontMatch(0, pat, &result);
|
|
||||||
|
|
||||||
if (match) FcFontSetAdd(fs, match);
|
|
||||||
if (pat) FcPatternDestroy(pat);
|
|
||||||
if(fs) {
|
|
||||||
FcChar8* file;
|
|
||||||
if( FcPatternGetString (fs->fonts[0], FC_FILE, 0, &file) == FcResultMatch ) {
|
|
||||||
CHECK_FONT_PATH((const char*)file)
|
|
||||||
}
|
|
||||||
FcFontSetDestroy(fs);
|
|
||||||
}
|
|
||||||
FcFini();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
|
||||||
|
|
||||||
// Check a couple of common paths for Gothic Uralic/bold as a last resort
|
|
||||||
// Debian
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a bold
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Debian it should be the Debian path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Debian it should be the Debian path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothu___.ttf")
|
|
||||||
// Mandrake
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a bold
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Mandrake it should be the Mandrake path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHUB__.TTF")
|
|
||||||
/*
|
|
||||||
TRANSLATORS: If using the FTGL backend, this should be the path of a
|
|
||||||
font that contains all the Unicode characters in use in your translation.
|
|
||||||
If the font is available in Mandrake it should be the Mandrake path.
|
|
||||||
*/
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHU___.TTF")
|
|
||||||
|
|
||||||
// Check the non-translated versions of the above
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothub__.ttf")
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/truetype/uralic/gothu___.ttf")
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHUB__.TTF")
|
|
||||||
CHECK_FONT_PATH("/usr/share/fonts/TTF/uralic/GOTHU___.TTF")
|
|
||||||
|
|
||||||
return font;
|
|
||||||
}
|
|
||||||
|
|
||||||
}}}//end namespace
|
}}}//end namespace
|
||||||
|
|
||||||
#endif // USE_FTGL
|
#endif // USE_FTGL
|
||||||
|
Reference in New Issue
Block a user