(svn r17772) -Fix [FS#3264]: CJK languages don't have spaces, so for adding newlines (multi line strings) we need to (properly) handle the case when there are no spaces instead of truncating the string.
This commit is contained in:
@@ -115,7 +115,7 @@ void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3)
|
||||
|
||||
Dimension GetStringBoundingBox(const char *str);
|
||||
Dimension GetStringBoundingBox(StringID strid);
|
||||
uint32 FormatStringLinebreaks(char *str, int maxw);
|
||||
uint32 FormatStringLinebreaks(char *str, const char *last, int maxw);
|
||||
int GetStringHeight(StringID str, int maxw);
|
||||
Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion);
|
||||
void LoadStringWidthTable();
|
||||
|
Reference in New Issue
Block a user