|
iText 9.7.0 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 xAdvance, int yAdvance) | |
| Copy a Glyph and assign new advance offsets. 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 () |
| Gets the index delta to base glyph. More... |
|
| virtual void | SetAnchorDelta (short anchorDelta) |
| Sets the index delta to base glyph. More... |
|
| virtual bool | HasOffsets () |
| Checks whether the glyph has any offsets either own or advance or both at the same time. More... |
|
| virtual bool | HasPlacement () |
| Checks whether the glyph has own offsets: either for X axis or Y axis or both at the same time. More... |
|
| virtual bool | HasAdvance () |
| Checks whether the glyph has advance offsets: either for X axis or Y axis or both at the same time. More... |
|
| 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 |
|
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 | еhe object |
true if this equals obj cast to Glyph, false otherwise
|
inlinevirtual |
Gets the index delta to base glyph.
|
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.
|
inlinevirtual |
Checks whether the glyph has advance offsets: either for X axis or Y axis or both at the same time.
true if glyph has any advance offsets, false otherwise
|
inlinevirtual |
Checks whether the glyph has any offsets either own or advance or both at the same time.
Checks whether the glyph has any offsets either own or advance or both at the same time.
See HasPlacement() and HasAdvance().
true if glyph has any offsets, false otherwise
|
inlinevirtual |
Checks whether the glyph has own offsets: either for X axis or Y axis or both at the same time.
true if glyph has any own offsets, false otherwise
|
inlinevirtual |
Sets the index delta to base glyph.
| anchorDelta | the index delta to base glyph to be set |