txlyre 1 年之前
父节点
当前提交
c7a774cc0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      makeshot/makeshot.c

+ 1 - 1
makeshot/makeshot.c

@@ -249,7 +249,7 @@ text_t *new_text(cairo_t *cr, char *s, int size, int weight, int preprocess) {
 
   text->layout = pango_cairo_create_layout(cr);
   pango_layout_set_font_description(text->layout, font_description);
-  pango_layout_set_wrap(text->layout, PANGO_WRAP_WORD);
+  pango_layout_set_wrap(text->layout, PANGO_WRAP_WORD_CHAR);
   pango_layout_set_width(text->layout, WRAP_WIDTH * PANGO_SCALE);
 
   pango_font_description_free(font_description);