-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
textLayoutRangeView: Fix layout calculation and image drawing
Calculate the frame of the text range more accurately, taking into account the padding and margins of each text layout fragment. Simplify the image() function to call stImage() directly. When drawing, calculate the origin for each text line fragment based on the layout fragment frame origin, rather than always starting at .zero.
- Loading branch information
1 parent
486e6bf
commit aa2b1e9
Showing
1 changed file
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters