fix incessant "inefficient font rendering" message

This commit is contained in:
benfry
2011-11-08 22:49:24 +00:00
parent 0e63965d20
commit 418983b02f
4 changed files with 22 additions and 18 deletions
@@ -3142,8 +3142,6 @@ public class PGraphics extends PImage implements PConstants {
*/
protected void textLineImpl(char buffer[], int start, int stop,
float x, float y) {
System.out.println("PGraphics: Using inefficient font rendering.");
new Exception().printStackTrace(System.out);
for (int index = start; index < stop; index++) {
textCharImpl(buffer[index], x, y);
@@ -1146,6 +1146,8 @@ public class PGraphicsAndroid2D extends PGraphics {
float x, float y) {
Typeface font = textFont.getTypeface();
if (font == null) {
showWarning("Inefficient font rendering: use createFont() with a TTF/OTF instead of loadFont().");
//new Exception().printStackTrace(System.out);
super.textLineImpl(buffer, start, stop, x, y);
return;
}
+18
View File
@@ -1,3 +1,21 @@
0202 android (2.0a3)
X fix problem with export menu, keys, toolbar being different
X change default package name a bit
X switch to SDK 8 (Android 2.2) as the minimum
X update the project files for Android SDK Tools Revision 15 (now required)
X launching on emulator not working well
X Latest android sdk breaks processing - new build.xml output required
X http://code.google.com/p/processing/issues/detail?id=876
X remove 'processing.test' package--people are posting on the market w/ it
X too many 'already exists' messages
X fix problem where creating a new AVD didn't update the device list
X remove 'includeantruntime' warning
X Android mode does not recognize library imports
X http://code.google.com/p/processing/issues/detail?id=766
X "Date could not be parsed" error
X http://code.google.com/p/processing/issues/detail?id=864
0201 android (2.0a2)
X lots of updates to PGraphics et al, especially on the 3D side
X change export menu/key/toolbar ordering
+2 -16
View File
@@ -1,19 +1,5 @@
0202 android
X fix problem with export menu, keys, toolbar being different
X change default package name a bit
X switch to SDK 8 (Android 2.2) as the minimum
X update the project files for Android SDK Tools Revision 15 (now required)
X launching on emulator not working well
X Latest android sdk breaks processing - new build.xml output required
X http://code.google.com/p/processing/issues/detail?id=876
X remove 'processing.test' package--people are posting on the market w/ it
X too many 'already exists' messages
X fix problem where creating a new AVD didn't update the device list
X remove 'includeantruntime' warning
X Android mode does not recognize library imports
X http://code.google.com/p/processing/issues/detail?id=766
X "Date could not be parsed" error
X http://code.google.com/p/processing/issues/detail?id=864
0203 android
X fix incessant "inefficient font rendering" message
_ if a sketch asks for android mode but it's not available