[pango] examples: Avoid deprecated api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] examples: Avoid deprecated api
- Date: Fri, 2 Aug 2019 11:35:06 +0000 (UTC)
commit 6c0a925fd6de88f2d7ed20051cbadbaf39eddc01
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 2 07:34:04 2019 -0400
examples: Avoid deprecated api
examples/pangowin32tobmp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c
index b657744f..15e473ec 100644
--- a/examples/pangowin32tobmp.c
+++ b/examples/pangowin32tobmp.c
@@ -81,7 +81,7 @@ int main (int argc, char **argv)
* force initialization of built-in engines, otherwise
* the rendering get's really fast - too fast to work :-(
*/
- context = pango_win32_get_context ();
+ context = pango_font_map_create_context (pango_win32_font_map_for_display ());
if (argc == 1) /* No arguments given */
{
@@ -208,7 +208,6 @@ int main (int argc, char **argv)
glyphs = pango_glyph_string_new ();
item = pango_item_new ();
- item->analysis.shape_engine = pango_font_find_shaper (font, lang, s[0]);
item->analysis.font = g_object_ref (font);
pango_shape ( s, sizeof(s), &(item->analysis), glyphs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]