mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
fixes for textFontNative, tests for launcher
This commit is contained in:
@@ -1736,8 +1736,9 @@ public class PGraphics extends PImage implements PConstants {
|
||||
public void textFont(PFont which) {
|
||||
if (which != null) {
|
||||
textFont = which;
|
||||
textSize(which.size);
|
||||
textFontNative = which.font;
|
||||
textFontNativeMetrics = null;
|
||||
textSize(which.size);
|
||||
|
||||
} else {
|
||||
throw new RuntimeException("a null PFont was passed to textFont()");
|
||||
|
||||
Reference in New Issue
Block a user