I have three fonts i want to use in my software:
These fonts have no overlap.
I want to setup my application such that all of these fonts are used at once since characters from different languages may appear in the same context in my software.
If a character is found in FontA, use it. Otherwise, look at FontB, if found use it. Look at FontC as last resort, if found, use it, otherwise do nothing.
How can i setup Qt to function that way?
(My environment is embedded linux, Qt 4.8)
P.S.: I tried QFont::insertSubstitution, but it is used in case FontA is not installed on the system so that doesn't really help in my case.
P.P.S.: Merging these fonts into a single font is out of the question since they are proprietry fonts.
Like others said – if your QT version uses fontconfig do it through fontconfig, its sole function is to manage smart font substitions. And if your version does not use fontconfig you're out of luck since I doubt anyone invested much time in getting it to work now that fontconfig is widely available.
Try to use this approach: How to (properly) output multilingual text in Qt-Embedded?
It works with lots of languages simultaneously (Cyrillic, European, Thai, Japanese, etc).
export QWS_NO_SHARE_FONTS=1
-fn "Droid Sans"
parameterIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With