-
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.
floating preview, round font metrics descent
- preview area floats/sticky as you scroll so it's visible - Some fonts report many different values for their alphanumberics in actualBoundingBoxDescent. Like a range of numbers between 0 and 1 for letters without obvious hangy downy bits. Other fonts report 0 for a lot of them and then 0.25 or 0.37 or something (depending on the font) for some letters. Since descent is using Math.ceil, in the second case you get a lot of variation where some alphanumberics are zero and some are one and in-game the letters are up and down bouncing all over the place. Now uses Math.round intead of Math.ceil so that 0 actualBoundingBoxDescent is grouped with a bunch of other values?
- Loading branch information
Showing
1 changed file
with
20 additions
and
11 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