]> git.donarmstrong.com Git - lilypond.git/commit
Pango: update interface for PangoContext and PangoFontMap.
authorPatrick McCarty <pnorcks@gmail.com>
Wed, 24 Feb 2010 03:09:47 +0000 (19:09 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Wed, 24 Feb 2010 04:27:16 +0000 (20:27 -0800)
commit289ac222d171fd65ecdafd6bec28376506b0c274
treecf94a8e49e2531ed73f51cc47d00a06a5a3cdcdd
parent1f038074ff957be23d2b0e14d1a69c5e871db0e8
Pango: update interface for PangoContext and PangoFontMap.

The pango_ft2_get_context() function is deprecated.  Using
pango_context_new() followed by pango_context_set_font_map()
accomplishes the same task.

Fortunately, defining PANGO_ENABLE_BACKEND enables pango_context_new()
and pango_context_set_font_map() for Pango versions older than 1.22.

The recommended function, pango_font_map_create_context(), requires
Pango 1.22, so avoid using it unless we absolutely have to.
lily/pango-font.cc