as with #739, use calculated ascent/descent instead of native metrics (fixes #768)

This commit is contained in:
Ben Fry
2023-08-10 18:05:36 -04:00
parent 1f303c1db3
commit adbcf0f0c4
4 changed files with 8 additions and 2 deletions

View File

@@ -2717,10 +2717,10 @@ public abstract class PGL {
// TODO: the next three functions shouldn't be here...
// Uses 'Object' so that the API can be used w/ Android Typeface objects
abstract protected int getFontAscent(Object font);
// abstract protected int getFontAscent(Object font);
abstract protected int getFontDescent(Object font);
// abstract protected int getFontDescent(Object font);
abstract protected int getTextWidth(Object font, char[] buffer, int start, int stop);