fixes for textFontNative, tests for launcher

This commit is contained in:
benfry
2005-10-20 20:04:02 +00:00
parent 0004b3faa8
commit b2c46f17ee
5 changed files with 13 additions and 5 deletions

View File

@@ -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()");