Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pangoGlyphItemGetLogicalWidths

pangoGlyphItemGetLogicalWidths


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

pangoGlyphItemGetLogicalWidths(glyph.item, text)

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

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

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.