1
0
Fork 0

(svn r23592) -Fix (r23590): forgot one case

release/1.2
truebrain 2011-12-18 19:39:24 +00:00
parent 7ec12936b5
commit b827694aec
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
* mess with the automatic font detection */ * mess with the automatic font detection */
char buff[256]; // This length is enough to find a suitable replacement font char buff[256]; // This length is enough to find a suitable replacement font
strecpy(buff, str, lastof(buff)); strecpy(buff, str, lastof(buff));
str_validate(buff, lastof(buff), true, false); str_validate(buff, lastof(buff), SVS_ALLOW_NEWLINE);
/* Extract a UniChar represenation of the sample string. */ /* Extract a UniChar represenation of the sample string. */
CFStringRef cf_str = CFStringCreateWithCString(kCFAllocatorDefault, buff, kCFStringEncodingUTF8); CFStringRef cf_str = CFStringCreateWithCString(kCFAllocatorDefault, buff, kCFStringEncodingUTF8);