From 253341d93d8e3cb38a204b539822ca1cc8597754 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 26 Oct 2021 17:59:57 +0800 Subject: ... --- src/osx/graphics/quartz/TextLayout.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/osx/graphics/quartz/TextLayout.cpp') diff --git a/src/osx/graphics/quartz/TextLayout.cpp b/src/osx/graphics/quartz/TextLayout.cpp index 29735606..41d04958 100644 --- a/src/osx/graphics/quartz/TextLayout.cpp +++ b/src/osx/graphics/quartz/TextLayout.cpp @@ -235,4 +235,10 @@ CTFrameRef OsxCTTextLayout::CreateFrameWithColor(const Color& color) { return frame; } + +String OsxCTTextLayout::GetDebugString() { + return Format(u"OsxCTTextLayout(text: {}, size: ({}, {}))", text_, max_width_, + max_height_); +} + } // namespace cru::platform::graphics::osx::quartz -- cgit v1.2.3