mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -3427,6 +3427,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
// TEXT IMPL
|
||||
|
||||
|
||||
/*
|
||||
@Override
|
||||
public float textAscent() {
|
||||
if (textFont == null) defaultFontOrDeath("textAscent");
|
||||
@@ -3447,6 +3448,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
if (descent == 0) descent = super.textDescent();
|
||||
return descent;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@@ -475,6 +475,7 @@ public class PJOGL extends PGL {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
@Override
|
||||
protected int getFontAscent(Object font) {
|
||||
return getFontMetrics((Font) font).getAscent();
|
||||
@@ -485,6 +486,7 @@ public class PJOGL extends PGL {
|
||||
protected int getFontDescent(Object font) {
|
||||
return getFontMetrics((Font) font).getDescent();
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
1294 (4.3.1)
|
||||
X difference in text position with processing 4.3, JAVA2D vs P2D
|
||||
X https://github.com/processing/processing4/issues/768
|
||||
|
||||
|
||||
contribs
|
||||
|
||||
Reference in New Issue
Block a user