diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2015-01-16 16:27:12 -0500 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-19 12:37:41 +0100 |
commit | 58259ad1edf14a4f514fe5f837ac7d1d99b58422 (patch) | |
tree | 353d41aa3a1bc8719e620423e46514bd0bfdd1bc /src/qt/guiutil.h | |
parent | 186a517692a659cd549e8e8e2161d7a99a188b9e (diff) | |
download | bitcoin-58259ad1edf14a4f514fe5f837ac7d1d99b58422.tar.xz |
qt: fix broken unicode chars on osx 10.10
- qt: avoid hard-coding font names
They may not contain all necessary characters for a language
- qt: fix broken unicode chars on osx 10.10
The default font changed again.
The real fix is to compile qt against a >= 10.8 sdk, but this is simple enough
to backport to 0.10 to avoid having to do that there.
Note: NSAppKitVersionNumber is a double and there's no official value for
NSAppKitVersionNumber10_10. Since == isn't reliable for doubles, use Apple's
guidelines for testing versions here:
https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKit/
Chinese and Japanese fonts have been hard-coded as well, otherwise they fail to
show up at all.
- qt: fonts: allow SubstituteFonts to filter based on user's language
SubstituteFonts() has been moved to after app identification so that QSettings
are accessible.
Github-Pull: #5671
Rebased-From: 73cd4edb4f1ff98c20549a609e96fa40834f5e73 52954e6efd373c14736237c4c79769bf00f5dfb8 f5ad78b34af8f50e12fab63b331768b96ec2c779
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r-- | src/qt/guiutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 09c79db2d9..41ff608715 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -107,7 +107,7 @@ namespace GUIUtil void openDebugLogfile(); // Replace invalid default fonts with known good ones - void SubstituteFonts(); + void SubstituteFonts(const QString& language); /** Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text representation if needed. This assures that Qt can word-wrap long tooltip messages. |