|
iText 9.8.0 API
|
Represents a glyph and its Unicode mapping, metrics, and layout adjustments. More...
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 () |
Returns the code or id by which this is represented in the Font File. More... |
|
| virtual int | GetWidth () |
| Returns the normalized width of this Glyph. More... |
|
| virtual int[] | GetBbox () |
| Returns the normalized bbox of this Glyph. More... |
|
| virtual bool | HasValidUnicode () |
| Determines whether valid unicode applies. More... |
|
| virtual int | GetUnicode () |
| Returns the unicode (utf-32 representation of Glyph). More... |
|
| virtual void | SetUnicode (int unicode) |
| Updates the Unicode text represented by this Glyph. More... |
|
| virtual char[] | GetChars () |
| Returns the Unicode text represented by this Glyph. More... |
|
| virtual void | SetChars (char[] chars) |
| Updates the Unicode text represented by this Glyph. More... |
|
| virtual bool | IsMark () |
| Determines whether this Glyph is Mark. More... |
|
| virtual short | GetXPlacement () |
| Returns the placement x offset. More... |
|
| virtual void | SetXPlacement (short xPlacement) |
| Updates the placement x offset. More... |
|
| virtual short | GetYPlacement () |
| Returns the placement y offset. More... |
|
| virtual void | SetYPlacement (short yPlacement) |
| Updates the placement y offset. More... |
|
| virtual short | GetXAdvance () |
| Returns the advance x offset. More... |
|
| virtual void | SetXAdvance (short xAdvance) |
| Updates the advance x offset. More... |
|
| virtual short | GetYAdvance () |
| Returns the advance y offset. More... |
|
| virtual void | SetYAdvance (short yAdvance) |
| Updates the advance y offset. More... |
|
| 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 () |
| Returns a string representation of this glyph. More... |
|
Represents a glyph and its Unicode mapping, metrics, and layout adjustments.
|
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 |
Returns the normalized bbox of this Glyph.
|
inlinevirtual |
Returns the Unicode text represented by this Glyph.
|
inlinevirtual |
Returns the code or id by which this is represented in the Font File.
|
inlinevirtual |
Returns the unicode (utf-32 representation of 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 |
Returns the normalized width of this Glyph.
|
inlinevirtual |
Returns the advance x offset.
|
inlinevirtual |
Returns the placement x offset.
|
inlinevirtual |
Returns the advance y offset.
|
inlinevirtual |
Returns the placement y offset.
|
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 |
Determines whether valid unicode applies.
true if the operation succeeds; otherwise false
|
inlinevirtual |
|
inlinevirtual |
Sets the index delta to base glyph.
| anchorDelta | the index delta to base glyph to be set |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Updates the advance x offset.
| xAdvance | the x advance |
|
inlinevirtual |
Updates the placement x offset.
| xPlacement | the x offset for placement |
|
inlinevirtual |
Updates the advance y offset.
| yAdvance | the y advance |
|
inlinevirtual |
Updates the placement y offset.
| yPlacement | the y offset for placement |
|
inline |
Returns a string representation of this glyph.