get_text_shaper method
Contents
[
Hide
]get_text_shaper(font_path, face_index)
Returns new instance of a text shaper for the font specified by fontPath andfaceIndex.
def get_text_shaper(self, font_path: str, face_index: int):
...
Parameter | Type | Description |
---|---|---|
font_path | str | An absolute path to the font file. |
face_index | int | An index of the font face in the TrueType font collection, or 0 if specified font file is not TrueType font collection. |
get_text_shaper(font_id, font_blob, face_index)
Returns new instance of a text shaper for the font represented by fontBlob andfaceIndex.
def get_text_shaper(self, font_id: str, font_blob: bytes, face_index: int):
...
Parameter | Type | Description |
---|---|---|
font_id | str | A unique identifier that can be uniquely associated with the provided font fontBlob. |
font_blob | bytes | Byte array with the font data. |
face_index | int | An index of the font face in the TrueType font collection, or 0 if fontBlob is not TrueType font collection. |
See Also
- module aspose.words.shaping
- class ITextShaperFactory