From f61cd0575f9f8b7be154073304795c22b0ec26ab Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 16 Nov 2021 21:09:37 +0800 Subject: ... --- include/cru/osx/graphics/quartz/TextLayout.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cru/osx') diff --git a/include/cru/osx/graphics/quartz/TextLayout.hpp b/include/cru/osx/graphics/quartz/TextLayout.hpp index b9bf5e44..d069cc28 100644 --- a/include/cru/osx/graphics/quartz/TextLayout.hpp +++ b/include/cru/osx/graphics/quartz/TextLayout.hpp @@ -77,6 +77,10 @@ class OsxCTTextLayout : public OsxQuartzResource, public virtual ITextLayout { // The trailing empty line count in the back of the lines. int tail_empty_line_count_; + // Just for cache. + CGRect text_bounds_without_trailing_space_; + CGRect text_bounds_with_trailing_space_; + Matrix transform_; }; } // namespace cru::platform::graphics::osx::quartz -- cgit v1.2.3