summaryrefslogtreecommitdiff
path: root/core/fxge/fx_ge_linux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/fx_ge_linux.cpp')
-rw-r--r--core/fxge/fx_ge_linux.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/fxge/fx_ge_linux.cpp b/core/fxge/fx_ge_linux.cpp
index c9d1dd128b..22a3c4cd1b 100644
--- a/core/fxge/fx_ge_linux.cpp
+++ b/core/fxge/fx_ge_linux.cpp
@@ -74,8 +74,7 @@ class CFX_LinuxFontInfo : public CFX_FolderFontInfo {
bool bItalic,
int charset,
int pitch_family,
- const char* family,
- int& iExact) override;
+ const char* family) override;
bool ParseFontCfg(const char** pUserPaths);
};
@@ -83,13 +82,11 @@ void* CFX_LinuxFontInfo::MapFont(int weight,
bool bItalic,
int charset,
int pitch_family,
- const char* cstr_face,
- int& iExact) {
+ const char* cstr_face) {
void* font = GetSubstFont(cstr_face);
- if (font) {
- iExact = 1;
+ if (font)
return font;
- }
+
bool bCJK = true;
switch (charset) {
case FX_CHARSET_ShiftJIS: {