Table of Contents

Class GlyphLine

Namespace
iText.IO.Font.Otf
Assembly
itext.io.dll
public class GlyphLine
Inheritance
GlyphLine
Inherited Members

Constructors

GlyphLine()

public GlyphLine()

GlyphLine(IList<Glyph>)

Create a new line of Glyphs.

public GlyphLine(IList<Glyph> glyphs)

Parameters

glyphs IList<Glyph>

list containing the glyphs

GlyphLine(IList<Glyph>, IList<ActualText>, int, int)

Create a new line of Glyphs from a slice of a List of Glyphs, and add the actual text.

protected GlyphLine(IList<Glyph> glyphs, IList<GlyphLine.ActualText> actualText, int start, int end)

Parameters

glyphs IList<Glyph>

list of Glyphs to slice

actualText IList<GlyphLine.ActualText>

corresponding list containing the actual text the glyphs represent

start int

starting index of the slice

end int

terminating index of the slice

GlyphLine(IList<Glyph>, int, int)

Create a new line of Glyphs from a slice of a List of Glyphs.

public GlyphLine(IList<Glyph> glyphs, int start, int end)

Parameters

glyphs IList<Glyph>

list of Glyphs to slice

start int

starting index of the slice

end int

terminating index of the slice

GlyphLine(GlyphLine)

Copy a line of Glyphs.

public GlyphLine(GlyphLine other)

Parameters

other GlyphLine

line of Glyphs to copy

GlyphLine(GlyphLine, int, int)

Copy a slice of a line of Glyphs

public GlyphLine(GlyphLine other, int start, int end)

Parameters

other GlyphLine

line of Glyphs to copy

start int

starting index of the slice

end int

terminating index of the slice

Fields

actualText

protected IList<GlyphLine.ActualText> actualText

Field Value

IList<GlyphLine.ActualText>

end

public int end

Field Value

int

glyphs

protected IList<Glyph> glyphs

Field Value

IList<Glyph>

idx

public int idx

Field Value

int

start

public int start

Field Value

int

Methods

Add(int, Glyph)

public virtual void Add(int index, Glyph glyph)

Parameters

index int
glyph Glyph

Add(Glyph)

public virtual void Add(Glyph glyph)

Parameters

glyph Glyph

Add(GlyphLine)

Add a line to the current one.

public virtual void Add(GlyphLine other)

Parameters

other GlyphLine

the line that should be added to the current one

Remarks

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.

Copy(int, int)

Copy a slice of this Glyphline.

public virtual GlyphLine Copy(int left, int right)

Parameters

left int

leftmost index of the slice

right int

rightmost index of the slice

Returns

GlyphLine

new GlyphLine containing the copied slice

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Filter(IGlyphLineFilter)

public virtual GlyphLine Filter(GlyphLine.IGlyphLineFilter filter)

Parameters

filter GlyphLine.IGlyphLineFilter

Returns

GlyphLine

Get(int)

public virtual Glyph Get(int index)

Parameters

index int

Returns

Glyph

GetHashCode()

public override int GetHashCode()

Returns

int

Iterator()

public virtual IEnumerator<GlyphLine.GlyphLinePart> Iterator()

Returns

IEnumerator<GlyphLine.GlyphLinePart>

ReplaceContent(GlyphLine)

Replaces the current content with the other line's content.

public virtual void ReplaceContent(GlyphLine other)

Parameters

other GlyphLine

the line with the content to be set to the current one

Set(int, Glyph)

public virtual Glyph Set(int index, Glyph glyph)

Parameters

index int
glyph Glyph

Returns

Glyph

SetActualText(int, int, string)

public virtual void SetActualText(int left, int right, string text)

Parameters

left int
right int
text string

SetGlyphs(IList<Glyph>)

public virtual void SetGlyphs(IList<Glyph> replacementGlyphs)

Parameters

replacementGlyphs IList<Glyph>

Size()

public virtual int Size()

Returns

int

SubstituteManyToOne(OpenTypeFontTableReader, int, int, int)

public virtual void SubstituteManyToOne(OpenTypeFontTableReader tableReader, int lookupFlag, int rightPartLen, int substitutionGlyphIndex)

Parameters

tableReader OpenTypeFontTableReader
lookupFlag int
rightPartLen int
substitutionGlyphIndex int

SubstituteOneToMany(OpenTypeFontTableReader, int[])

public virtual void SubstituteOneToMany(OpenTypeFontTableReader tableReader, int[] substGlyphIds)

Parameters

tableReader OpenTypeFontTableReader
substGlyphIds int[]

SubstituteOneToOne(OpenTypeFontTableReader, int)

public virtual void SubstituteOneToOne(OpenTypeFontTableReader tableReader, int substitutionGlyphIndex)

Parameters

tableReader OpenTypeFontTableReader
substitutionGlyphIndex int

ToString()

public override string ToString()

Returns

string

ToUnicodeString(int, int)

Get the unicode string representation of the GlyphLine slice.

public virtual string ToUnicodeString(int start, int end)

Parameters

start int

starting index of the slice

end int

terminating index of the slice

Returns

string

String containing the unicode representation of the slice.