| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -438,7 +438,9 @@ public interface PConstants { | |||
| 438 | 438 | // hints - hint values are positive for the alternate version, | |
| 439 | 439 | // negative of the same value returns to the normal/default state | |
| 440 | 440 | ||
| 441 | + @Deprecated | ||
| 441 | 442 | static final int ENABLE_NATIVE_FONTS = 1; | |
| 443 | + @Deprecated | ||
| 442 | 444 | static final int DISABLE_NATIVE_FONTS = -1; | |
| 443 | 445 | ||
| 444 | 446 | static final int DISABLE_DEPTH_TEST = 2; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -388,7 +388,7 @@ public PFont(InputStream input) throws IOException { | |||
| 388 | 388 | } | |
| 389 | 389 | // See if there's a native version of this font that can be used, | |
| 390 | 390 | // in case that's of interest later. | |
| 391 | - findNative(); | ||
| 391 | + // findNative(); | ||
| 392 | 392 | } | |
| 393 | 393 | ||
| 394 | 394 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1072,7 +1072,13 @@ protected void reapplySettings() { | |||
| 1072 | 1072 | * @see PApplet#createGraphics(int, int, String, String) | |
| 1073 | 1073 | * @see PApplet#size(int, int) | |
| 1074 | 1074 | */ | |
| 1075 | + @SuppressWarnings("deprecation") | ||
| 1075 | 1076 | public void hint(int which) { | |
| 1077 | + if (which == ENABLE_NATIVE_FONTS || | ||
| 1078 | + which == DISABLE_NATIVE_FONTS) { | ||
| 1079 | + showWarning("hint(ENABLE_NATIVE_FONTS) no longer supported. " + | ||
| 1080 | + "Use createFont() instead."); | ||
| 1081 | + } | ||
| 1076 | 1082 | if (which > 0) { | |
| 1077 | 1083 | hints[which] = true; | |
| 1078 | 1084 | } else { | |
@@ -3935,11 +3941,11 @@ public float textDescent() { | |||
| 3935 | 3941 | public void textFont(PFont which) { | |
| 3936 | 3942 | if (which != null) { | |
| 3937 | 3943 | textFont = which; | |
| 3938 | - if (hints[ENABLE_NATIVE_FONTS]) { | ||
| 3939 | - //if (which.font == null) { | ||
| 3940 | - which.findNative(); | ||
| 3941 | - //} | ||
| 3942 | - } | ||
| 3944 | + // if (hints[ENABLE_NATIVE_FONTS]) { | ||
| 3945 | + // //if (which.font == null) { | ||
| 3946 | + // which.findNative(); | ||
| 3947 | + // //} | ||
| 3948 | + // } | ||
| 3943 | 3949 | /* | |
| 3944 | 3950 | textFontNative = which.font; | |
| 3945 | 3951 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,11 @@ X window at this point. And re-opening a new winodw is a lot of mess. | |||
| 15 | 15 | X Better all around to just encourage the use of sketchFullScreen() | |
| 16 | 16 | X or cmd/ctrl-shift-R in the PDE. | |
| 17 | 17 | X make notes about methods removed from JSON to be conservative | |
| 18 | - | ||
| 18 | + X remove default findNative() that was enabling native fonts w/ p5 | ||
| 19 | + o when using loadFont(), don't enable native fonts unless hint() in use | ||
| 20 | + o but on createFont(), we're probably OK | ||
| 21 | + o might need to make reference notes about the two behaviors | ||
| 22 | + X decision: remove hint(ENABLE_NATIVE_FONTS) | ||
| 19 | 23 | ||
| 20 | 24 | _ PImage.resize() greater than loaded image size hangs Java App | |
| 21 | 25 | _ http://code.google.com/p/processing/issues/detail?id=1463 | |
@@ -65,11 +69,6 @@ X saveTable("filename.tsv") or saveTable("filename.txt", "tsv") | |||
| 65 | 69 | X createTable() method in PApplet | |
| 66 | 70 | X removed getUniqueXxxx() and some others, pending names | |
| 67 | 71 | ||
| 68 | - o when using loadFont(), don't enable native fonts unless hint() in use | ||
| 69 | - o but on createFont(), we're probably OK | ||
| 70 | - o might need to make reference notes about the two behaviors | ||
| 71 | - _ decision: remove hint(ENABLE_NATIVE_FONTS) | ||
| 72 | - | ||
| 73 | 72 | _ implement mousePressed(Event) etc | |
| 74 | 73 | _ better to do this instead of bringing back the magic event | |
| 75 | 74 | _ or implementing the magic event on Android | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,13 +60,15 @@ public class PGraphicsPDF extends PGraphicsJava2D { | |||
| 60 | 60 | ||
| 61 | 61 | /** Shared across instances because it's incredibly time-consuming to create. */ | |
| 62 | 62 | static protected DefaultFontMapper mapper; | |
| 63 | - static protected String fontList[]; | ||
| 63 | + static protected String[] fontList; | ||
| 64 | 64 | ||
| 65 | 65 | ||
| 66 | + /* | ||
| 66 | 67 | public PGraphicsPDF() { | |
| 67 | 68 | // PDF always likes native fonts. Always. | |
| 68 | 69 | hint(ENABLE_NATIVE_FONTS); | |
| 69 | 70 | } | |
| 71 | + */ | ||
| 70 | 72 | ||
| 71 | 73 | ||
| 72 | 74 | public void setPath(String path) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,11 +30,9 @@ X add basics of retina support to the toolbar and header | |||
| 30 | 30 | X getDefaultToolkit().getDesktopProperty("apple.awt.contentScaleFactor"); | |
| 31 | 31 | X paper over ArrayIndexOutOfBoundsException in JEditTextArea.xToOffset() | |
| 32 | 32 | ||
| 33 | - _ deal with underscores and "Find in Reference" | ||
| 34 | - _ http://code.google.com/p/processing/issues/detail?id=1474 | ||
| 35 | - | ||
| 36 | - _ unable to open the URL link to reference after updated to 2.0b7 | ||
| 37 | - _ http://code.google.com/p/processing/issues/detail?id=1465 | ||
| 33 | + X "Find in Reference" largely broken in 2.0b7 | ||
| 34 | + C http://code.google.com/p/processing/issues/detail?id=1456 | ||
| 35 | + _ shouldn't we be splitting the reference? | ||
| 38 | 36 | ||
| 39 | 37 | earlier | |
| 40 | 38 | X include debug mode as 'experimental'? | |
| Back | FazBrowse Home | New Git URL |
0 commit comments