Skip to content

Commit 5b28a97

Browse files
committed
clean up the last of the font/pdf fixes
1 parent e068fd1 commit 5b28a97

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

core/src/processing/core/PGraphics.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,11 +3094,11 @@ public float textDescent() {
30943094
public void textFont(PFont which) {
30953095
if (which != null) {
30963096
textFont = which;
3097-
// if (hints[ENABLE_NATIVE_FONTS]) {
3098-
// //if (which.font == null) {
3099-
// which.findFont();
3100-
// //}
3101-
// }
3097+
if (hints[ENABLE_NATIVE_FONTS]) {
3098+
//if (which.font == null) {
3099+
which.findFont();
3100+
//}
3101+
}
31023102
/*
31033103
textFontNative = which.font;
31043104

core/todo.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ X http://code.google.com/p/processing/issues/detail?id=42
66
X textAlign() incorrect with default font on Mac OS X 10.6
77
X http://code.google.com/p/processing/issues/detail?id=362
88
X changed default font to Lucida Sans, available on all platforms
9+
X need to finish font changes wrt native fonts before any release
10+
X right now not in a good place--default font will be bitmapped and ugly
11+
X http://code.google.com/p/processing/issues/detail?id=416
12+
o need to have some kind of subsetting mode, but 'subsetting' a bad name
913

10-
_ need to finish font changes wrt native fonts before any release
11-
_ right now not in a good place--default font will be bitmapped and ugly
12-
_ http://code.google.com/p/processing/issues/detail?id=416
13-
_ need to have some kind of subsetting mode, but 'subsetting' a bad name
14+
_ make sure that loadXxxx() methods are used after init()
15+
_ nasty errors when loadImage/Font/createFont/etc used outside
1416

1517
_ selectInput() and selectOutput() freeze on OS X
1618
_ http://code.google.com/p/processing/issues/detail?id=445

java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ public class PGraphicsPDF extends PGraphicsJava2D {
6262
static protected String fontList[];
6363

6464

65-
public PGraphicsPDF() { }
65+
public PGraphicsPDF() {
66+
// PDF always likes native fonts. Always.
67+
hint(ENABLE_NATIVE_FONTS);
68+
}
6669

6770

6871
public void setPath(String path) {

0 commit comments

Comments
 (0)