public abstract class PDFGlyphVector extends Object
LayoutBox
is a better option,
but if there's a requirement to get text onto the page as fast as possible
without any layout then this class can be used. A quick example:
PDFStyle style = ... PDFGlyphVector vector = style.createGlyphVector("Hello World", Locale.getDefault()); canvas.drawGlyphVector(vector, x, y);
Modifier and Type | Method and Description |
---|---|
int |
getNumGlyphs()
Returns the number of glyphs in this PDFGlyphVector
|
PDFStyle |
getStyle()
Returns the style that created these glyphs.
|
float |
getWidth()
Returns the width of this PDFGlyphVector in points
|
public PDFStyle getStyle()
public int getNumGlyphs()
public float getWidth()
Copyright © 2001-2017 Big Faceless Organization