3,881
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
cairo_text_extents_t extents;
cairo_select_font_face(cr, "Adobe 黑体 Std R", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size(cr, 14);
cairo_text_extents(cr, "中文字体", &extents);
cairo_move_to(cr, 0,0);
cairo_set_source_rgb(cr, 1,0,0);
cairo_show_text(cr, "中文字体");