Class GlyphLine
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
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
intstarting index of the slice
end
intterminating 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
intstarting index of the slice
end
intterminating index of the slice
GlyphLine(GlyphLine)
Copy a line of Glyphs.
public GlyphLine(GlyphLine other)
Parameters
other
GlyphLineline 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
GlyphLineline of Glyphs to copy
start
intstarting index of the slice
end
intterminating index of the slice
Fields
actualText
protected IList<GlyphLine.ActualText> actualText
Field Value
end
public int end
Field Value
glyphs
protected IList<Glyph> glyphs
Field Value
idx
public int idx
Field Value
start
public int start
Field Value
Methods
Add(int, Glyph)
public virtual void Add(int index, Glyph glyph)
Parameters
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
GlyphLinethe 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
Returns
- GlyphLine
new GlyphLine containing the copied slice
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
Filter(IGlyphLineFilter)
public virtual GlyphLine Filter(GlyphLine.IGlyphLineFilter filter)
Parameters
filter
GlyphLine.IGlyphLineFilter
Returns
Get(int)
public virtual Glyph Get(int index)
Parameters
index
int
Returns
GetHashCode()
public override int GetHashCode()
Returns
Iterator()
public virtual IEnumerator<GlyphLine.GlyphLinePart> Iterator()
Returns
ReplaceContent(GlyphLine)
Replaces the current content with the other line's content.
public virtual void ReplaceContent(GlyphLine other)
Parameters
other
GlyphLinethe line with the content to be set to the current one
Set(int, Glyph)
public virtual Glyph Set(int index, Glyph glyph)
Parameters
Returns
SetActualText(int, int, string)
public virtual void SetActualText(int left, int right, string text)
Parameters
SetGlyphs(IList<Glyph>)
public virtual void SetGlyphs(IList<Glyph> replacementGlyphs)
Parameters
Size()
public virtual int Size()
Returns
SubstituteManyToOne(OpenTypeFontTableReader, int, int, int)
public virtual void SubstituteManyToOne(OpenTypeFontTableReader tableReader, int lookupFlag, int rightPartLen, int substitutionGlyphIndex)
Parameters
tableReader
OpenTypeFontTableReaderlookupFlag
intrightPartLen
intsubstitutionGlyphIndex
int
SubstituteOneToMany(OpenTypeFontTableReader, int[])
public virtual void SubstituteOneToMany(OpenTypeFontTableReader tableReader, int[] substGlyphIds)
Parameters
tableReader
OpenTypeFontTableReadersubstGlyphIds
int[]
SubstituteOneToOne(OpenTypeFontTableReader, int)
public virtual void SubstituteOneToOne(OpenTypeFontTableReader tableReader, int substitutionGlyphIndex)
Parameters
tableReader
OpenTypeFontTableReadersubstitutionGlyphIndex
int
ToString()
public override string ToString()
Returns
ToUnicodeString(int, int)
Get the unicode string representation of the GlyphLine slice.
public virtual string ToUnicodeString(int start, int end)
Parameters
Returns
- string
String containing the unicode representation of the slice.