File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
java/libraries/pdf/src/processing/pdf Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ X http://code.google.com/p/processing/issues/detail?id=42
66X textAlign() incorrect with default font on Mac OS X 10.6
77X http://code.google.com/p/processing/issues/detail?id=362
88X 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments