GUI: Support unicode and BiDi in editable widget
This commit is contained in:
parent
14e61b0590
commit
b67b88e6d9
6 changed files with 46 additions and 25 deletions
|
@ -1665,11 +1665,11 @@ int ThemeEngine::getStringWidth(const Common::U32String &str, FontStyle font) co
|
|||
return ready() ? _texts[fontStyleToData(font)]->_fontPtr->getStringWidth(str) : 0;
|
||||
}
|
||||
|
||||
int ThemeEngine::getCharWidth(byte c, FontStyle font) const {
|
||||
int ThemeEngine::getCharWidth(uint32 c, FontStyle font) const {
|
||||
return ready() ? _texts[fontStyleToData(font)]->_fontPtr->getCharWidth(c) : 0;
|
||||
}
|
||||
|
||||
int ThemeEngine::getKerningOffset(byte left, byte right, FontStyle font) const {
|
||||
int ThemeEngine::getKerningOffset(uint32 left, uint32 right, FontStyle font) const {
|
||||
return ready() ? _texts[fontStyleToData(font)]->_fontPtr->getKerningOffset(left, right) : 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue