Method
PangoGlyphStringindex_to_x_full
Declaration [src]
void
pango_glyph_string_index_to_x_full (
PangoGlyphString* glyphs,
const char* text,
int length,
PangoAnalysis* analysis,
PangoLogAttr* attrs,
int index_,
gboolean trailing,
int* x_pos
)
Description [src]
Converts from character position to x position.
This variant of pango_glyph_string_index_to_x()
additionally
accepts a PangoLogAttr
array. The grapheme boundary information
in it can be used to disambiguate positioning inside some complex clusters.
Available since: | 1.50 |
Parameters
text |
const char* |
The text for the run. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
length |
int |
The number of bytes (not characters) in |
|
analysis |
PangoAnalysis |
The analysis information return from |
|
The data is owned by the caller of the function. | |
attrs |
PangoLogAttr |
|
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
index_ |
int |
The byte index within |
|
trailing |
gboolean |
Whether we should compute the result for the beginning ( |
|
x_pos |
int* |
Location to store result. |
|
The argument will be set by the function. |