Priority: P2: Important
Affects Version/s: 5.3.0, 5.4.1, 5.5.0
Fix Version/s: 5.6.0 Beta
Ubuntu touch 15.04
if developer specifies font family with Non-Regular style, potential risk to encounter Chinese characters are missing in some cases .
Regarding the code snippets above.
For Chinese characters, QFontDatabase will use fallback font family("Droid Sans Fallback") with "Light" style when add font Glyph.
since QFontDatabase checks if default style(Regular) of fallback font family "Droid Sans Fallback" is same as font style specified in qml(Font.Light).
And QFontDatabase::isSmoothlyScalable will return false in such a case, which results in scene graph will
use QSGDefaultGlyphNode when createGlyphNode is called. Issue happens.
However If scene graph doesn't prefer NativeGlyphNode and create GlyphNode based on Distance Field technique. It works fine.
Need to only check styleKey when foundry->styles == specified style
Please have a check with the testcases.qml attached.