ElementBuilderCreateShapedTextRun Method |
Create a new text run from shaped text. Shaped Text can be created
with an approriate Font, using the Font.GetShapedText() method.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntaxpublic Element CreateShapedTextRun(
ShapedText shaped_text
)
Public Function CreateShapedTextRun (
shaped_text As ShapedText
) As Element
public:
virtual Element^ CreateShapedTextRun(
[InAttribute] ShapedText^ shaped_text
) sealed
function CreateShapedTextRun(shaped_text);
Parameters
- shaped_text
- Type: pdftron.PDFShapedText
the shaped text data
Return Value
Type:
Element the element
Remarks
You must set the current Font and font size before calling this function.
The font must be created using Font::CreateCIDTrueTypeFont() method, and should
be the same font used to generate the shaped text content. For best results, the
font should be encoded using the e_Indices encoding scheme.
A text run can be created only within a text block
See Also