mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
Fix crash in GenericDrawTextSurface::drawChar() when a TTF is used with Unicode text
This commit is contained in:
parent
cb4b4f8b4d
commit
6f0819fa30
@ -112,9 +112,10 @@ public:
|
||||
}
|
||||
|
||||
case FontType::kTrueType: {
|
||||
std::string str;
|
||||
// TODO avoid a temporary string
|
||||
std::wstring str;
|
||||
str.push_back(chr);
|
||||
drawString(font, fg, bg, x, y, str);
|
||||
drawString(font, fg, bg, x, y, base::to_utf8(str).c_str());
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user