pangoGlyphStringIndexToX: pangoGlyphStringIndexToX

Description Usage Arguments Value Author(s)

View source: R/pangoManuals.R

Description

Converts from character position to x position. (X position is measured from the left edge of the run). Character positions are computed by dividing up each cluster into equal portions.

Usage

1
pangoGlyphStringIndexToX(object, text, analysis, index, trailing)

Arguments

object

[PangoGlyphString] the glyphs return from pangoShape

text

[char] the text for the run

analysis

[PangoAnalysis] the analysis information return from pangoItemize

index

[integer] the byte index within text

trailing

[logical] whether we should compute the result for the beginning (FALSE) or end (TRUE) of the character.

Value

A list containing the following elements:

x.pos

[integer] location to store result

Author(s)

Derived by RGtkGen from GTK+ documentation


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