mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
todo items and subsetting stuff into android as well
This commit is contained in:
@@ -119,6 +119,13 @@ public class PFont implements PConstants {
|
||||
*/
|
||||
protected Typeface typeface;
|
||||
|
||||
/**
|
||||
* True if this font should return 'null' for getFont(), so that the native
|
||||
* font will be used to create a subset, but the native version of the font
|
||||
* will not be used.
|
||||
*/
|
||||
protected boolean subsetting;
|
||||
|
||||
/**
|
||||
* True if we've already tried to find the native version of this font.
|
||||
*/
|
||||
@@ -429,6 +436,9 @@ public class PFont implements PConstants {
|
||||
* Return the native Typeface object associated with this PFont (if any).
|
||||
*/
|
||||
public Typeface getTypeface() {
|
||||
if (subsetting) {
|
||||
return null;
|
||||
}
|
||||
return typeface;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user