Modifier and Type | Field and Description |
---|---|
private static int |
BITMAP_HEIGHT |
private static int |
BITMAP_PIXEL_FORMAT |
private static int |
BITMAP_WIDTH |
private static D2D1_COLOR_F |
BLACK |
private static boolean |
CACHE_TARGET |
private static IWICBitmap |
cachedBitmap |
private static ID2D1RenderTarget |
cachedTarget |
private static D2D1_MATRIX_3X2_F |
D2D2_MATRIX_IDENTITY |
private boolean |
drawShapes |
private DWRITE_GLYPH_METRICS |
metrics |
private byte[][] |
pixelData |
private float |
pixelXAdvance |
private float |
pixelYAdvance |
private RECT |
rect |
private RECT[] |
rects |
private DWRITE_GLYPH_RUN |
run |
private DWFontStrike |
strike |
private static D2D1_COLOR_F |
WHITE |
Constructor and Description |
---|
DWGlyph(DWFontStrike strike,
int glyphCode,
boolean drawShapes) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
checkBounds() |
(package private) void |
checkMetrics() |
(package private) IDWriteGlyphRunAnalysis |
createAnalysis(float x,
float y) |
(package private) IWICBitmap |
createBitmap(int width,
int height) |
(package private) ID2D1RenderTarget |
createRenderingTarget(IWICBitmap bitmap) |
float |
getAdvance() |
RectBounds |
getBBox() |
(package private) IWICBitmap |
getCachedBitmap() |
(package private) ID2D1RenderTarget |
getCachedRenderingTarget() |
(package private) byte[] |
getD2DMask(float subPixelX,
float subPixelY,
boolean lcd) |
int |
getGlyphCode() |
int |
getHeight() |
(package private) byte[] |
getLCDMask(float subPixelX,
float subPixelY) |
int |
getOriginX() |
int |
getOriginY() |
byte[] |
getPixelData() |
byte[] |
getPixelData(int subPixel)
Returns the glyph mask at the subpixel position specified by subPixel.
|
float |
getPixelXAdvance() |
float |
getPixelYAdvance() |
Shape |
getShape() |
int |
getWidth() |
boolean |
isLCDGlyph() |
private DWFontStrike strike
private DWRITE_GLYPH_METRICS metrics
private DWRITE_GLYPH_RUN run
private float pixelXAdvance
private float pixelYAdvance
private RECT rect
private boolean drawShapes
private byte[][] pixelData
private RECT[] rects
private static final boolean CACHE_TARGET
private static IWICBitmap cachedBitmap
private static ID2D1RenderTarget cachedTarget
private static final int BITMAP_WIDTH
private static final int BITMAP_HEIGHT
private static final int BITMAP_PIXEL_FORMAT
private static D2D1_COLOR_F BLACK
private static D2D1_COLOR_F WHITE
private static D2D1_MATRIX_3X2_F D2D2_MATRIX_IDENTITY
DWGlyph(DWFontStrike strike, int glyphCode, boolean drawShapes)
void checkMetrics()
void checkBounds()
byte[] getLCDMask(float subPixelX, float subPixelY)
byte[] getD2DMask(float subPixelX, float subPixelY, boolean lcd)
IDWriteGlyphRunAnalysis createAnalysis(float x, float y)
IWICBitmap getCachedBitmap()
ID2D1RenderTarget getCachedRenderingTarget()
IWICBitmap createBitmap(int width, int height)
ID2D1RenderTarget createRenderingTarget(IWICBitmap bitmap)
public int getGlyphCode()
getGlyphCode
in interface Glyph
public RectBounds getBBox()
public float getAdvance()
getAdvance
in interface Glyph
public byte[] getPixelData()
getPixelData
in interface Glyph
public byte[] getPixelData(int subPixel)
Glyph
getPixelData
in interface Glyph
FontStrike.getQuantizedPosition(com.sun.javafx.geom.Point2D)
public float getPixelXAdvance()
getPixelXAdvance
in interface Glyph
public float getPixelYAdvance()
getPixelYAdvance
in interface Glyph
public int getOriginX()
getOriginX
in interface Glyph
public int getOriginY()
getOriginY
in interface Glyph
public boolean isLCDGlyph()
isLCDGlyph
in interface Glyph