Changeset - r20903:70eeb7e913d5
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-08 19:13:32
rubidium@openttd.org
(svn r25949) -Fix [FS#5683]: text direction forcing characters were not filtered out, but shown as ? when ICU was not used for layouting. These are included in chat and console messages to force them to be displayed right
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/gfx_layout.cpp
Show inline comments
 
@@ -481,6 +481,12 @@ Layouter::Layouter(const char *str, int 
 
				} else if (c == SCC_BIGFONT) {
 
					state.SetFontSize(FS_LARGE);
 
				} else {
 
#ifndef WITH_ICU
 
					/* Filter out text direction characters that shouldn't be drawn, and
 
					 * will not be handled in the fallback non ICU case because they are
 
					 * mostly needed for RTL languages which need more ICU support. */
 
					if (IsTextDirectionChar(c)) continue;
 
#endif
 
					buff += AppendToBuffer(buff, buffer_last, c);
 
					continue;
 
				}
0 comments (0 inline, 0 general)