Click or drag to resize

FontGetGlyphPath Method (Int32, Boolean)

The function retrieves the glyph outline for a given Character code.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public PathData GetGlyphPath(
	int char_code,
	bool conics2cubics
)

Parameters

char_code
Type: SystemInt32
Character to query
conics2cubics
Type: SystemBoolean
if set to true converts all quadratic Bezier curves to cubic Beziers, otherwise no coversion is performed.

Return Value

Type: PathData
A PathData object containing the path information.
Remarks
the function can return only the following operators (Element::e_moveto, Element::e_lineto, Element::e_cubicto and optionaly Element::e_conicto if conics2cubics parameter is set to true. This function is not applicable to Type3 font and will throw an exception. Use GetType3GlyphStream instead. Check PathData.IsDefined to see if the char_code was mapped to 'undefined Character code'.
See Also