iText 8.0.5 API
|
Public Member Functions |
|
Glyph (int code, int width, int unicode) | |
Construct a non-mark Glyph, retrieving characters from unicode. More... |
|
Glyph (int code, int width, char[] chars) | |
Construct a non-mark Glyph, using the codepoint of the characters as unicode point. More... |
|
Glyph (int code, int width, int unicode, int[] bbox) | |
Construct a non-mark Glyph, retrieving characters from unicode. More... |
|
Glyph (int width, int unicode) | |
Construct a non-mark Glyph object with id -1 and characters retrieved from unicode. More... |
|
Glyph (int code, int width, int unicode, char[] chars, bool IsMark) | |
Construct a glyph object form the passed arguments. More... |
|
Glyph (iText.IO.Font.Otf.Glyph glyph) | |
Copy a Glyph. More... |
|
Glyph (iText.IO.Font.Otf.Glyph glyph, int xPlacement, int yPlacement, int xAdvance, int yAdvance, int anchorDelta) | |
Copy a Glyph and assign new placement and advance offsets and a new index delta to base glyph More... |
|
Glyph (iText.IO.Font.Otf.Glyph glyph, int unicode) | |
Copy a glyph and assign the copied glyph a new unicode point and characters More... |
|
virtual int | GetCode () |
virtual int | GetWidth () |
virtual int[] | GetBbox () |
virtual bool | HasValidUnicode () |
virtual int | GetUnicode () |
virtual void | SetUnicode (int unicode) |
virtual char[] | GetChars () |
virtual void | SetChars (char[] chars) |
virtual bool | IsMark () |
virtual short | GetXPlacement () |
virtual void | SetXPlacement (short xPlacement) |
virtual short | GetYPlacement () |
virtual void | SetYPlacement (short yPlacement) |
virtual short | GetXAdvance () |
virtual void | SetXAdvance (short xAdvance) |
virtual short | GetYAdvance () |
virtual void | SetYAdvance (short yAdvance) |
virtual short | GetAnchorDelta () |
virtual void | SetAnchorDelta (short anchorDelta) |
virtual bool | HasOffsets () |
virtual bool | HasPlacement () |
virtual bool | HasAdvance () |
override int | GetHashCode () |
override bool | Equals (Object obj) |
Two Glyphs are equal if their unicode characters, code and normalized width are equal. More... |
|
virtual String | GetUnicodeString () |
Gets a Unicode string corresponding to this glyph. More... |
|
virtual char[] | GetUnicodeChars () |
Gets Unicode char sequence corresponding to this glyph. More... |
|
override String | ToString () |
|
inline |
Construct a non-mark Glyph, retrieving characters from unicode.
code | code representation of the glyph in the font file |
width | normalized width of the glyph |
unicode | utf-32 representation of glyph if appears. Correct value is > -1 |
|
inline |
|
inline |
|
inline |
Construct a non-mark Glyph object with id -1 and characters retrieved from unicode.
width | normalized width of the glyph |
unicode | utf-32 representation of glyph if appears. Correct value is > -1 |
|
inline |
Construct a glyph object form the passed arguments.
code | code representation of the glyph in the font file |
width | normalized width of the glyph |
unicode | utf-32 representation of glyph if appears. Correct value is > -1 |
chars | The Unicode text represented by this Glyph. if null is passed, the unicode value is used to retrieve the chars. |
IsMark | True if the glyph is a Mark |
|
inline |
|
inline |
Copy a Glyph and assign new placement and advance offsets and a new index delta to base glyph
glyph | Glyph to copy |
xPlacement | x - placement offset |
yPlacement | y - placement offset |
xAdvance | x - advance offset |
yAdvance | y - advance offset |
anchorDelta | Index delta to base glyph. If after a glyph there are several anchored glyphs we should know we to find base glyph. |
|
inline |
Copy a glyph and assign the copied glyph a new unicode point and characters
glyph | glyph to copy |
unicode | new unicode point |
|
inline |
Two Glyphs are equal if their unicode characters, code and normalized width are equal.
obj | The object |
|
inlinevirtual |
Gets Unicode char sequence corresponding to this glyph.
Gets Unicode char sequence corresponding to this glyph. In general case it might consist of many characters. If this glyph does not have a valid unicode ( HasValidUnicode() ), then a special Unicode '\ufffd' character is returned.
|
inlinevirtual |
Gets a Unicode string corresponding to this glyph.
Gets a Unicode string corresponding to this glyph. In general case it might consist of many characters. If this glyph does not have a valid unicode ( HasValidUnicode() ), then a string consisting of a special Unicode '\ufffd' character is returned.