ScFace::gid_type ScFace::hyphenGlyph(const CharStyle& style) const { if (style.hyphenChar() == 0) return SpecialChars::ZWNBSPACE.unicode() + ScFace::CONTROL_GLYPHS; if (style.hyphenChar() == 0x2010) return hyphenGlyph(); return m_m->char2CMap(style.hyphenChar()); }
double ScFace::hyphenWidth(const CharStyle& style, qreal size) const { if (style.hyphenChar() == 0) return 0; return glyphBBox(hyphenGlyph(style), size).width; }