Small fixes
This commit is contained in:
@@ -78,22 +78,3 @@ pub fn shape_dirty(ctx: &context::Context, ui_model: &mut ui_model::UiModel) {
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn render_test(ctx: &cairo::Context, font_desc: pango::FontDescription) {
|
||||
//let font_map = FontMap::get_default();
|
||||
//let pango_context = font_map.create_context().unwrap();
|
||||
//pango_context.set_font_description(&font_desc);
|
||||
|
||||
//let text = "TEST String".to_owned();
|
||||
//let attr_list = pango::AttrList::new();
|
||||
|
||||
//ctx.move_to(0.0, 50.0);
|
||||
//let items = pango_itemize(&pango_context, &text, &attr_list);
|
||||
//for item in items {
|
||||
//let mut glyphs = pango::GlyphString::new();
|
||||
//let analysis = item.analysis();
|
||||
//pango_shape(&text, &analysis, &mut glyphs);
|
||||
//let font = analysis.font();
|
||||
//let (ink, logical) = glyphs.extents(&font);
|
||||
//ctx.show_glyph_string(&font, &glyphs);
|
||||
//}
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user