| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5126,27 +5126,22 @@ protected void textCharScreenImpl(PImage glyph, | |||
| 5126 | 5126 | */ | |
| 5127 | 5127 | ||
| 5128 | 5128 | ||
| 5129 | - // /** | ||
| 5130 | - // * Convenience method to get a legit FontMetrics object. Where possible, | ||
| 5131 | - // * override this any renderer subclass so that you're not using what's | ||
| 5132 | - // * returned by getDefaultToolkit() to get your metrics. | ||
| 5133 | - // */ | ||
| 5134 | - // @SuppressWarnings("deprecation") | ||
| 5135 | - // public FontMetrics getFontMetrics(Font font) { // ignore | ||
| 5136 | - // Frame frame = parent.frame; | ||
| 5137 | - // if (frame != null) { | ||
| 5138 | - // return frame.getToolkit().getFontMetrics(font); | ||
| 5139 | - // } | ||
| 5140 | - // return Toolkit.getDefaultToolkit().getFontMetrics(font); | ||
| 5141 | - // } | ||
| 5142 | - // | ||
| 5143 | - // | ||
| 5144 | - // /** | ||
| 5145 | - // * Convenience method to jump through some Java2D hoops and get an FRC. | ||
| 5146 | - // */ | ||
| 5147 | - // public FontRenderContext getFontRenderContext(Font font) { // ignore | ||
| 5148 | - // return getFontMetrics(font).getFontRenderContext(); | ||
| 5149 | - // } | ||
| 5129 | + | ||
| 5130 | + ////////////////////////////////////////////////////////////// | ||
| 5131 | + | ||
| 5132 | + // PARITY WITH P5.JS | ||
| 5133 | + | ||
| 5134 | + | ||
| 5135 | + public void push() { | ||
| 5136 | + pushStyle(); | ||
| 5137 | + pushMatrix(); | ||
| 5138 | + } | ||
| 5139 | + | ||
| 5140 | + | ||
| 5141 | + public void pop() { | ||
| 5142 | + popStyle(); | ||
| 5143 | + popMatrix(); | ||
| 5144 | + } | ||
| 5150 | 5145 | ||
| 5151 | 5146 | ||
| 5152 | 5147 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ X default font will be faster, using ttf/otf is fine | |||
| 10 | 10 | X only createFont("The Font Name") is still slow on macOS | |
| 11 | 11 | X and PFont.list() | |
| 12 | 12 | X add circle() and square() | |
| 13 | + X add push() and pop() | ||
| 13 | 14 | ||
| 14 | 15 | contrib | |
| 15 | 16 | o make tabs into spaces, fixes pixelDensity(2) issue with tabs | |
@@ -77,7 +78,6 @@ _ (Map is more efficient b/c of size, Iterable more useful) | |||
| 77 | 78 | ||
| 78 | 79 | ||
| 79 | 80 | 3.5+ | |
| 80 | - _ add push() and pop() | ||
| 81 | 81 | _ requestSize() and xxxxTitle() (to diminish use of 'surface') | |
| 82 | 82 | _ make setting the window icon automatic, based on files in local dirs | |
| 83 | 83 | X https://github.com/processing/processing/issues/5123 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments