mirror of
https://github.com/processing/processing4.git
synced 2026-01-30 20:01:09 +01:00
complete OBJECT/MODEL, and PFont.list()
This commit is contained in:
@@ -441,7 +441,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
textSize = 12;
|
||||
textLeading = 14;
|
||||
textAlign = LEFT;
|
||||
textMode = OBJECT;
|
||||
textMode = MODEL;
|
||||
}
|
||||
|
||||
|
||||
@@ -1752,7 +1752,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
|
||||
PImage glyph = textFont.images[index];
|
||||
|
||||
if (textMode == OBJECT) {
|
||||
if (textMode == MODEL) {
|
||||
float high = (float) textFont.height[index] / textFont.fheight;
|
||||
float bwidth = (float) textFont.width[index] / textFont.fwidth;
|
||||
float lextent = (float) textFont.leftExtent[index] / textFont.fwidth;
|
||||
|
||||
Reference in New Issue
Block a user