@@ -63,12 +63,7 @@ double FontProvider::descent(const muse::draw::Font& f) const
6363 return fontsEngine ()->descent (f);
6464}
6565
66- bool FontProvider::inFont (const muse::draw::Font& f, muse::Char ch) const
67- {
68- return inFontUcs4 (f, static_cast <char32_t >(ch.unicode ()));
69- }
70-
71- bool FontProvider::inFontUcs4 (const muse::draw::Font& f, char32_t ucs4) const
66+ bool FontProvider::inFont (const muse::draw::Font& f, char32_t ucs4) const
7267{
7368 return fontsEngine ()->inFontUcs4 (f, ucs4);
7469}
@@ -79,26 +74,19 @@ double FontProvider::horizontalAdvance(const muse::draw::Font& f, const muse::St
7974 return fontsEngine ()->horizontalAdvance (f, string.toStdU32String ());
8075}
8176
82- double FontProvider::horizontalAdvance (const muse::draw::Font& f, const muse::Char& ch ) const
77+ double FontProvider::horizontalAdvance (const muse::draw::Font& f, char32_t ucs4 ) const
8378{
84- return fontsEngine ()->horizontalAdvance (f, ch. unicode () );
79+ return fontsEngine ()->horizontalAdvance (f, ucs4 );
8580}
8681
8782RectF FontProvider::boundingRect (const muse::draw::Font& f, const muse::String& string) const
8883{
8984 return fontsEngine ()->boundingRect (f, string.toStdU32String ());
9085}
9186
92- RectF FontProvider::boundingRect (const muse::draw::Font& f, const muse::Char& ch) const
93- {
94- return fontsEngine ()->boundingRect (f, ch.unicode ());
95- }
96-
97- RectF FontProvider::boundingRect (const muse::draw::Font& f, const RectF& r, int flags, const muse::String& string) const
87+ RectF FontProvider::boundingRect (const muse::draw::Font& f, char32_t ucs4) const
9888{
99- UNUSED (r);
100- UNUSED (flags);
101- return boundingRect (f, string);
89+ return fontsEngine ()->boundingRect (f, ucs4);
10290}
10391
10492RectF FontProvider::tightBoundingRect (const muse::draw::Font& f, const muse::String& string) const
0 commit comments