mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
rework on UILineEdit
* allow multiline text editing * rename UILineEdit to UITextEdit
This commit is contained in:
@@ -45,6 +45,9 @@ void Font::load(const OTMLNodePtr& fontNode)
|
||||
} else
|
||||
calculateGlyphsWidthsAutomatically(glyphSize);
|
||||
|
||||
// new line actually has a size that will be useful in multiline algorithm
|
||||
m_glyphsSize[(uchar)'\n'] = Size(1, m_glyphHeight);
|
||||
|
||||
// read custom widths
|
||||
if(OTMLNodePtr node = fontNode->get("glyph-widths")) {
|
||||
for(const OTMLNodePtr& child : node->children())
|
||||
|
Reference in New Issue
Block a user