Click or drag to resize

FontGetGlyphPath Method (Int32, ByteArrayRef, DoubleArrayRef, 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 bool GetGlyphPath(
	int char_code,
	ByteArrayRef out_oprs,
	DoubleArrayRef out_data,
	bool conics2cubics
)

Parameters

char_code
Type: SystemInt32
Character to query
out_oprs
Type: pdftron.CommonByteArrayRef
A ByteArrayRef, the Array is filled in by the method.
out_data
Type: pdftron.CommonDoubleArrayRef
A DoubleArrayRef that represent arguments for operators. The Array is filled in by the method.
conics2cubics
Type: SystemBoolean
if set to true converts all quadratic Bezier curves to cubic Beziers, otherwise no coversion is performed.

Return Value

Type: Boolean
false if the char_code was mapped to 'undefined Character code'. In some fonts 'undefined Character code' corresponds to a space, in some fonts it is a box, and in others it may be a more complicated glyph.
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.
See Also