diff options
author | crupest <crupest@outlook.com> | 2021-10-26 17:59:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-26 17:59:57 +0800 |
commit | 253341d93d8e3cb38a204b539822ca1cc8597754 (patch) | |
tree | f692c9998dccd288c38871dcf43db9f8ddadc3b1 /src/osx/graphics/quartz/TextLayout.cpp | |
parent | 82431bd0b7e971b956a6a6942538adc8df2ac38c (diff) | |
download | cru-253341d93d8e3cb38a204b539822ca1cc8597754.tar.gz cru-253341d93d8e3cb38a204b539822ca1cc8597754.tar.bz2 cru-253341d93d8e3cb38a204b539822ca1cc8597754.zip |
...
Diffstat (limited to 'src/osx/graphics/quartz/TextLayout.cpp')
-rw-r--r-- | src/osx/graphics/quartz/TextLayout.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |