pangoGlyphItemGetLogicalWidths: pangoGlyphItemGetLogicalWidths

Description Usage Arguments Details Value Author(s)

View source: R/pangoFuncs.R

Description

Given a PangoGlyphItem and the corresponding text, determine the screen width corresponding to each character. When multiple characters compose a single cluster, the width of the entire cluster is divided equally among the characters.

Usage

1

Arguments

glyph.item

[PangoGlyphItem] a PangoGlyphItem

text

[char] text that glyph.item corresponds to (glyph_item->item->offset is an offset from the start of text)

Details

See also pangoGlyphStringGetLogicalWidths. Since 1.26

Value

A list containing the following elements:

logical.widths

[integer] a list whose length is the number of characters in glyph_item (equal to glyph_item->item->num_chars) to be filled in with the resulting character widths.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.