summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2013-03-25 19:15:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-26 18:04:11 +0100
commit46f3543aacffa5ed7e4358563bd03a33913c07a9 (patch)
tree8b14a1139e84f830f9b9a1eab34317a7f6ac4bf1 /src/gui
parentea1b1efbc1e14c9960c46e731f0681ee398343d7 (diff)
Fix handling of 0x00AD code with symbol fonts (Win/QPA/QPF/fallback)
...by updating HB_Face::isSymbolFont value to make HB know that the font is a symbol font. U+00AD is a Unicode soft hyphen character, which shouldn't be threated like a default ignorable (invisible) when 0x00AD occurred in a symbol font. Change-Id: Idd4760aded644f7f11a1a8d3c03c348abc69a3e4 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qfontengine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp
index dbe56889da..7654b56d75 100644
--- a/src/gui/text/qfontengine.cpp
+++ b/src/gui/text/qfontengine.cpp
@@ -279,6 +279,7 @@ void *QFontEngine::harfbuzzFace() const
Q_CHECK_PTR(hbFace);
if (hbFace->font_for_init != 0)
hbFace = qHBLoadFace(hbFace);
+ hbFace->isSymbolFont = symbol;
face_ = (void *)hbFace;
face_destroy_func = hb_freeFace;