のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

/pango/pango-layout.c

706pango_layout_set_font_description (PangoLayout                 *layout,
707				    const PangoFontDescription *desc)
708{
709  g_return_if_fail (layout != NULL);
710
711  if (desc != layout->font_desc &&
712      (!desc || !layout->font_desc || !pango_font_description_equal(desc, layout->font_desc)))
713    {
714      if (layout->font_desc)
715	pango_font_description_free (layout->font_desc);
716
717      layout->font_desc = desc ? pango_font_description_copy (desc) : NULL;
718
719      layout_changed (layout);
720      layout->tab_width = -1;
721    }
722}
723