public abstract class GlyphLayout
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CANONICAL_SUBSTITUTION |
static int |
HINTING |
private static boolean |
inUse |
private static java.lang.reflect.Method |
isIdeographicMethod
Android versions that still run a dalvik based on JDK 6 (API level 18 and
before) don't have the method Character.isIdeographic.
|
static int |
LAYOUT_LEFT_TO_RIGHT
A flag bit indicating text direction as determined by Bidi analysis.
|
static int |
LAYOUT_NO_LIMIT_CONTEXT
A flag bit indicating that text in the char array
after the indicated limit should not be examined.
|
static int |
LAYOUT_NO_START_CONTEXT
A flag bit indicating that text in the char array
before the indicated start should not be examined.
|
static int |
LAYOUT_RIGHT_TO_LEFT |
private static GlyphLayout |
reusableGL |
Constructor and Description |
---|
GlyphLayout() |
Modifier and Type | Method and Description |
---|---|
protected TextRun |
addTextRun(PrismTextLayout layout,
char[] chars,
int start,
int length,
PGFont font,
TextSpan span,
byte level) |
private TextRun |
addTextRun(PrismTextLayout layout,
char[] chars,
int start,
int length,
PGFont font,
TextSpan span,
byte level,
boolean complex) |
int |
breakRuns(PrismTextLayout layout,
char[] chars,
int flags) |
void |
dispose() |
protected int |
getInitialSlot(FontResource fr) |
static GlyphLayout |
getInstance() |
private static boolean |
isIdeographic(int codePoint) |
abstract void |
layout(TextRun run,
PGFont font,
FontStrike strike,
char[] text) |
private static GlyphLayout |
newInstance() |
public static final int CANONICAL_SUBSTITUTION
public static final int LAYOUT_LEFT_TO_RIGHT
public static final int LAYOUT_RIGHT_TO_LEFT
public static final int LAYOUT_NO_START_CONTEXT
public static final int LAYOUT_NO_LIMIT_CONTEXT
public static final int HINTING
private static java.lang.reflect.Method isIdeographicMethod
private static GlyphLayout reusableGL
private static boolean inUse
protected TextRun addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level)
private TextRun addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level, boolean complex)
public int breakRuns(PrismTextLayout layout, char[] chars, int flags)
public abstract void layout(TextRun run, PGFont font, FontStrike strike, char[] text)
protected int getInitialSlot(FontResource fr)
private static GlyphLayout newInstance()
public static GlyphLayout getInstance()
public void dispose()
private static boolean isIdeographic(int codePoint)