clean up the last of the font/pdf fixes

This commit is contained in:
benfry
2011-03-07 22:53:46 +00:00
parent 8c1f7cdbe4
commit 13fb0b4157
3 changed files with 15 additions and 10 deletions
+5 -5
View File
@@ -3094,11 +3094,11 @@ public class PGraphics extends PImage implements PConstants {
public void textFont(PFont which) {
if (which != null) {
textFont = which;
// if (hints[ENABLE_NATIVE_FONTS]) {
// //if (which.font == null) {
// which.findFont();
// //}
// }
if (hints[ENABLE_NATIVE_FONTS]) {
//if (which.font == null) {
which.findFont();
//}
}
/*
textFontNative = which.font;
+6 -4
View File
@@ -6,11 +6,13 @@ X http://code.google.com/p/processing/issues/detail?id=42
X textAlign() incorrect with default font on Mac OS X 10.6
X http://code.google.com/p/processing/issues/detail?id=362
X changed default font to Lucida Sans, available on all platforms
X need to finish font changes wrt native fonts before any release
X right now not in a good place--default font will be bitmapped and ugly
X http://code.google.com/p/processing/issues/detail?id=416
o need to have some kind of subsetting mode, but 'subsetting' a bad name
_ need to finish font changes wrt native fonts before any release
_ right now not in a good place--default font will be bitmapped and ugly
_ http://code.google.com/p/processing/issues/detail?id=416
_ need to have some kind of subsetting mode, but 'subsetting' a bad name
_ make sure that loadXxxx() methods are used after init()
_ nasty errors when loadImage/Font/createFont/etc used outside
_ selectInput() and selectOutput() freeze on OS X
_ http://code.google.com/p/processing/issues/detail?id=445
@@ -62,7 +62,10 @@ public class PGraphicsPDF extends PGraphicsJava2D {
static protected String fontList[];
public PGraphicsPDF() { }
public PGraphicsPDF() {
// PDF always likes native fonts. Always.
hint(ENABLE_NATIVE_FONTS);
}
public void setPath(String path) {