-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add advances to TextMetrics and change baselines API
This changes the canvas TextMetrics interface mixin in two ways: * It adds an advances attribute, for the advances of each character. * It changes the baselines-retrieval API from separate attributes to a dictionary returned by a getBaselines() method.
- Loading branch information
Showing
1 changed file
with
39 additions
and
26 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