shape_item


Description:


[ Version ( since = "1.50" ) ]
public void shape_item (Item item, string? paragraph_text, int paragraph_length, LogAttr? log_attrs, GlyphString glyphs, ShapeFlags flags)

Convert the characters in item into glyphs.

This is similar to [[email protected]_with_flags], except it takes a `PangoItem` instead of separate item_text and analysis arguments. It also takes log_attrs, which may be used in implementing text transforms.

Note that the extra attributes in the analyis that is returned from [[email protected]] have indices that are relative to the entire paragraph, so you do not pass the full paragraph text as paragraph_text, you need to subtract the item offset from their indices before calling [[email protected]_with_flags].

Parameters:

item

`PangoItem` to shape

paragraph_text

text of the paragraph (see details).

paragraph_length

the length (in bytes) of paragraph_text. -1 means nul-terminated text.

log_attrs

array of `PangoLogAttr` for item

glyphs

glyph string in which to store results

flags

flags influencing the shaping process


Namespace: Pango
Package: pango



2022 vala-language.org