Package com.itextpdf.io.font.otf
Class GlyphLine
java.lang.Object
com.itextpdf.io.font.otf.GlyphLine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic classstatic interface -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCopy a line of Glyphs.Copy a slice of a line of GlyphsCreate a new line of Glyphs.Create a new line of Glyphs from a slice of a List of Glyphs.protectedGlyphLine(List<Glyph> glyphs, List<GlyphLine.ActualText> actualText, int start, int end) Create a new line of Glyphs from a slice of a List of Glyphs, and add the actual text. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidAdd a line to the current one.copy(int left, int right) Copy a slice of this Glyphline.booleanfilter(GlyphLine.IGlyphLineFilter filter) get(int index) inthashCode()iterator()voidreplaceContent(GlyphLine other) Replaces the current content with the other line's content.voidsetActualText(int left, int right, String text) voidintsize()voidsubstituteManyToOne(OpenTypeFontTableReader tableReader, int lookupFlag, int rightPartLen, int substitutionGlyphIndex) voidsubstituteOneToMany(OpenTypeFontTableReader tableReader, int[] substGlyphIds) voidsubstituteOneToOne(OpenTypeFontTableReader tableReader, int substitutionGlyphIndex) toString()toUnicodeString(int start, int end) Get the unicode string representation of the GlyphLine slice.
-
Field Details
-
start
public int start -
end
public int end -
idx
public int idx -
glyphs
-
actualText
-
-
Constructor Details
-
GlyphLine
public GlyphLine() -
GlyphLine
Create a new line of Glyphs.- Parameters:
-
glyphs- list containing the glyphs
-
GlyphLine
Create a new line of Glyphs from a slice of a List of Glyphs.- Parameters:
-
glyphs- list of Glyphs to slice -
start- starting index of the slice -
end- terminating index of the slice
-
GlyphLine
Create a new line of Glyphs from a slice of a List of Glyphs, and add the actual text.- Parameters:
-
glyphs- list of Glyphs to slice -
actualText- corresponding list containing the actual text the glyphs represent -
start- starting index of the slice -
end- terminating index of the slice
-
GlyphLine
Copy a line of Glyphs.- Parameters:
-
other- line of Glyphs to copy
-
GlyphLine
Copy a slice of a line of Glyphs- Parameters:
-
other- line of Glyphs to copy -
start- starting index of the slice -
end- terminating index of the slice
-
-
Method Details
-
toUnicodeString
Get the unicode string representation of the GlyphLine slice.- Parameters:
-
start- starting index of the slice -
end- terminating index of the slice - Returns:
- String containing the unicode representation of the slice.
-
toString
-
copy
Copy a slice of this Glyphline.- Parameters:
-
left- leftmost index of the slice -
right- rightmost index of the slice - Returns:
- new GlyphLine containing the copied slice
-
get
-
set
-
add
-
add
-
setGlyphs
-
add
Add a line to the current one. The glyphs from the start till the end points will be copied. The same is true for the actual text.- Parameters:
-
other- the line that should be added to the current one
-
replaceContent
Replaces the current content with the other line's content.- Parameters:
-
other- the line with the content to be set to the current one
-
size
public int size() -
substituteManyToOne
public void substituteManyToOne(OpenTypeFontTableReader tableReader, int lookupFlag, int rightPartLen, int substitutionGlyphIndex) -
substituteOneToOne
-
substituteOneToMany
-
filter
-
setActualText
-
iterator
-
equals
-
hashCode
public int hashCode()
-