public class DWGlyphLayout extends GlyphLayout
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LOCALE |
CANONICAL_SUBSTITUTION, HINTING, LAYOUT_LEFT_TO_RIGHT, LAYOUT_NO_LIMIT_CONTEXT, LAYOUT_NO_START_CONTEXT, LAYOUT_RIGHT_TO_LEFT
Constructor and Description |
---|
DWGlyphLayout() |
Modifier and Type | Method and Description |
---|---|
protected TextRun |
addTextRun(PrismTextLayout layout,
char[] chars,
int start,
int length,
PGFont font,
TextSpan span,
byte level) |
private FontResource |
checkFontResource(FontResource fr,
java.lang.String psName,
java.lang.String win32Name) |
private int |
getFontSlot(IDWriteFontFace face,
CompositeFontResource composite,
java.lang.String primaryFont,
int slot) |
private int[] |
getIndices(short[] clusterMap,
int glyphCount,
boolean rtl) |
private java.lang.String |
getName(IDWriteLocalizedStrings localizedStrings) |
private float[] |
getPositions(float[] advances,
float[] offsets,
int glyphCount,
boolean rtl) |
void |
layout(TextRun run,
PGFont font,
FontStrike strike,
char[] text) |
private void |
renderShape(char[] text,
TextRun run,
PGFont font,
int baseSlot) |
breakRuns, dispose, getInitialSlot, getInstance
private static final java.lang.String LOCALE
protected TextRun addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level)
addTextRun
in class GlyphLayout
public void layout(TextRun run, PGFont font, FontStrike strike, char[] text)
layout
in class GlyphLayout
private float[] getPositions(float[] advances, float[] offsets, int glyphCount, boolean rtl)
private int[] getIndices(short[] clusterMap, int glyphCount, boolean rtl)
private java.lang.String getName(IDWriteLocalizedStrings localizedStrings)
private FontResource checkFontResource(FontResource fr, java.lang.String psName, java.lang.String win32Name)
private int getFontSlot(IDWriteFontFace face, CompositeFontResource composite, java.lang.String primaryFont, int slot)