Progress..

This commit is contained in:
daa
2017-08-20 21:09:57 +03:00
parent 063bd86fd7
commit 6964d2e756
6 changed files with 41 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ pub fn render(ctx: &cairo::Context) {
let items = pango_itemize(&pango_context, &text, 0, len, &attr_list);
for item in items {
let mut glyphs = pango::GlyphString::new();
pango_shape(&text, len, item.analysis(), &mut glyphs);
let analysis = item.analysis();
pango_shape(&text, len, &analysis, &mut glyphs);
let (ink, logical) = glyphs.extents(&analysis.font());
}
}