结构
PangoGlyphItem
说明 [来源]
struct PangoGlyphItem {
PangoItem* item;
PangoGlyphString* glyphs;
int y_offset;
int start_x_offset;
int end_x_offset;
}
PangoGlyphItem 是 PangoItem 与对齐文本的字形结果的一对。
作为 PangoGlyphItem 使用的示例,使用 PangoLayout 对齐文本的结果是 PangoLayoutLine 列表,每个 PangoLayoutLine 都包含 PangoGlyphItem 列表。
结构成员
item对应的
PangoItem。glyphs对应的
PangoGlyphString。y_offset基线的偏移相对于包含行的基线。正值向上偏移。
start_x_offset字形项前要应用的水平位移。正值向右偏移。
end_x_offset字形项后要应用的水平位移。正值向右偏移。
实例方法
pango_glyph_item_split
修改 orig 以仅覆盖 split_index 后面的文本,并返回一个新的项,该项覆盖以前在 orig 中的 split_index 之前的文本。
版本:1.2