Table of Contents

Class ShapedLine

Namespace
PDFjet.NET
Assembly
PDFjet.dll

A line of text a shaper shaped: the part of the text it holds, and its glyphs, each with its font and its place.

public sealed class ShapedLine
Inheritance
ShapedLine
Inherited Members

Constructors

ShapedLine(int, int, int[], int[], float[], float)

A shaped line.

public ShapedLine(int start, int end, int[] fontIndexes, int[] glyphs, float[] positions, float width)

Parameters

start int
end int
fontIndexes int[]
glyphs int[]
positions float[]
width float

Properties

End

The index in the text after the line's last character.

public int End { get; }

Property Value

int

FontIndexes

For each glyph, the index of its font among the font files the shaper was given, or -1 for a glyph of none of them, which is not drawn.

public int[] FontIndexes { get; }

Property Value

int[]

Glyphs

The glyph numbers, in their fonts.

public int[] Glyphs { get; }

Property Value

int[]

Positions

The x and the y of each glyph, in points, from the left end of the line at its baseline, y growing down: x0, y0, x1, y1 and so on.

public float[] Positions { get; }

Property Value

float[]

Start

The index in the text of the line's first character.

public int Start { get; }

Property Value

int

Width

The width of the line, in points, without the white space at its end: what is centered, aligned to the right or justified.

public float Width { get; }

Property Value

float