mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
Added support for curly braces in NPC chat
-Added overlay to the default consoleBuffer for highlighting -Char 127 now is used as spacer (Width 1) -Supports default font "verdana-11px-antialised" http://i.imgur.com/8drWH.png
This commit is contained in:
@@ -52,6 +52,9 @@ void BitmapFont::load(const OTMLNodePtr& fontNode)
|
||||
m_glyphsSize[32].setWidth(spaceWidth);
|
||||
m_glyphsSize[160].setWidth(spaceWidth);
|
||||
|
||||
// use 127 as spacer [Width: 1]
|
||||
m_glyphsSize[127].setWidth(1);
|
||||
|
||||
// new line actually has a size that will be useful in multiline algorithm
|
||||
m_glyphsSize[(uchar)'\n'] = Size(1, m_glyphHeight);
|
||||
|
||||
|
Reference in New Issue
Block a user