forked from aseprite/laf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new TextBlob class and text_shape example
Now we have TextBlob::Make() and TextBlob::MakeWithShaper() to cache/store the shaped layout of a set of glyphs to be rendered with draw_text(..., TextBlobRef, ...). We can also iterate clusters with RunHandler. There is still some work to be done for RTL text and composed chars. And we should try to replace the old DrawTextDelegate with the new TextBlob::RunHandler in the future.
- Loading branch information
Showing
23 changed files
with
727 additions
and
100 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
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
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
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
Oops, something went wrong.