diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 12:06:14 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 12:06:14 +0800 |
commit | 32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 (patch) | |
tree | 892b71060a88b58d9293d78033000b05818783df /demos/platform | |
parent | faf77949e19dc0d01f75bf8abb783eda70328048 (diff) | |
download | cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.gz cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.bz2 cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.zip |
Remove String stage 1.
Diffstat (limited to 'demos/platform')
-rw-r--r-- | demos/platform/graphics/DrawText.cpp | 4 | ||||
-rw-r--r-- | demos/platform/graphics/SvgPath.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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<cru::platform::graphics::IFont> 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(); diff --git a/demos/platform/graphics/SvgPath.cpp b/demos/platform/graphics/SvgPath.cpp index d0827878..d944cc5f 100644 --- a/demos/platform/graphics/SvgPath.cpp +++ b/demos/platform/graphics/SvgPath.cpp @@ -15,7 +15,7 @@ int main() { auto geometry_builder = demo.GetFactory()->CreateGeometryBuilder(); geometry_builder->ParseAndApplySvgPathData( - uR"( + R"( M8.5 5.5a.5.5 0 0 0-1 0v3.362l-1.429 2.38a.5.5 0 1 0 .858.515l1.5-2.5A.5.5 0 0 0 8.5 9V5.5z M6.5 0a.5.5 0 0 0 0 1H7v1.07a7.001 7.001 0 0 0-3.273 12.474l-.602.602a.5.5 0 0 0 .707.708l.746-.746A6.97 6.97 0 0 0 8 16a6.97 6.97 0 0 0 3.422-.892l.746.746a.5.5 0 0 0 .707-.708l-.601-.602A7.001 7.001 0 0 0 9 2.07V1h.5a.5.5 0 0 0 0-1h-3zm1.038 3.018a6.093 6.093 0 0 1 .924 0 6 6 0 1 1-.924 0zM0 3.5c0 .753.333 1.429.86 1.887A8.035 8.035 0 0 1 4.387 1.86 2.5 2.5 0 0 0 0 3.5zM13.5 1c-.753 0-1.429.333-1.887.86a8.035 8.035 0 0 1 3.527 3.527A2.5 2.5 0 0 0 13.5 1z )"); |