[dia] [gtk-osx] fallback font context for running console version



commit a6922731d4362d73863ee5eaa696affcee91973c
Author: Hans Breuer <hans breuer org>
Date:   Sun Sep 28 14:06:03 2014 +0200

    [gtk-osx] fallback font context for running console version
    
    this is needed to successfully run the unit test on OS X

 lib/font.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/font.c b/lib/font.c
index c2d21e6..fcaae20 100644
--- a/lib/font.c
+++ b/lib/font.c
@@ -149,6 +149,8 @@ dia_font_get_context()
     else {
 #  ifdef GDK_WINDOWING_WIN32
       dia_font_push_context(pango_win32_get_context ());
+#  elif defined GDK_WINDOWING_QUARTZ
+      dia_font_push_context (pango_font_map_create_context (pango_cairo_font_map_get_default ()));
 #  else
       g_warning ("dia_font_get_context() : not font context w/o display. Crashing soon.");
 #  endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]