From 32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 12:06:14 +0800 Subject: Remove String stage 1. --- demos/platform/graphics/DrawText.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/platform/graphics/DrawText.cpp') diff --git a/demos/platform/graphics/DrawText.cpp b/demos/platform/graphics/DrawText.cpp index dfea18cd..275e141a 100644 --- a/demos/platform/graphics/DrawText.cpp +++ b/demos/platform/graphics/DrawText.cpp @@ -14,8 +14,8 @@ int main() { demo.GetFactory()->CreateSolidColorBrush(cru::platform::colors::skyblue); std::shared_ptr font( - demo.GetFactory()->CreateFont(u"", 24)); - auto text_layout = demo.GetFactory()->CreateTextLayout(font, u"Hello world!"); + demo.GetFactory()->CreateFont("", 24)); + auto text_layout = demo.GetFactory()->CreateTextLayout(font, "Hello world!"); demo.GetPainter()->DrawText({0, 0}, text_layout.get(), brush.get()); auto bounds = text_layout->GetTextBounds(); -- cgit v1.2.3