Click or drag to resize

FontGetVerticalAdvance Method (Int32, Double, Double)

Gets the vertical advance.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public double GetVerticalAdvance(
	int char_code,
	double pos_x,
	double pos_y
)

Parameters

char_code
Type: SystemInt32
Character to query for vertical advance
pos_x
Type: SystemDouble
x coordinate
pos_y
Type: SystemDouble
y coordinate

Return Value

Type: Double
an double Array containing in the following order vertical advance. vertical advance is a displacement vector for vertical writing mode (i.e. writing mode 1); its horizontal component is always 0. horizontal component of the position vector defining the position of the vertical writing mode origin relative to horizontal writing mode origin. vertical component of the position vector defining the position of the vertical writing mode origin relative to horizontal writing mode origin.
Remarks
Use this method only for composite fonts with vertical writing mode (i.e. if Font.IsHorizontalMode() returns false). The method will return 0 as vertical advance for simple fonts or for composite fonts with only horizontal writing mode. Relevant only for a Type0 font.
See Also