Creates a set of positioned glyphs corresponding to the visual
representation of the provided text string. The shaped text will take into
account any advanced positioning and substitution features provided by
an underylying embedded font file. For example, these features could include
kerning, ligatures, and diacritic positioning.
Typically the resulting shaped text would be fed into ElementBuilder.CreateShapedTextRun()
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public ShapedText GetShapedText(
string text_to_shape
)
Public Function GetShapedText (
text_to_shape As String
) As ShapedText
public:
virtual ShapedText^ GetShapedText(
[InAttribute] String^ text_to_shape
) sealed
function GetShapedText(text_to_shape);
Parameters
- text_to_shape
- Type: SystemString
The string to be shaped.
Return Value
Type:
ShapedText A ShapedText object representing the result of the shaping operation.
Remarks Shaping requires a Type0 font with an embedded font file which covers all the
unicode codepoints in the source text. For best results, this font should use
the e_Indices encoding scheme, as shaping features that combine multiple codepoints
into one glyph (ligatures, for example) will not work well in non-index encoded fonts.
See Also