[dia] [gtk-x11] fallback font context for running console version
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [gtk-x11] fallback font context for running console version
- Date: Sun, 16 Nov 2014 12:41:08 +0000 (UTC)
commit 3d9b25341860d5a6164c53c69a5e6fd4645e8511
Author: Hans Breuer <hans breuer org>
Date: Sun Nov 16 12:25:06 2014 +0100
[gtk-x11] fallback font context for running console version
build --without-freetype can not run unit tests because of missing
font context. But to have rotatable text it's currently advised to
not use freetype directly.
lib/font.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/font.c b/lib/font.c
index fcaae20..fa3c75c 100644
--- a/lib/font.c
+++ b/lib/font.c
@@ -149,7 +149,7 @@ dia_font_get_context()
else {
# ifdef GDK_WINDOWING_WIN32
dia_font_push_context(pango_win32_get_context ());
-# elif defined GDK_WINDOWING_QUARTZ
+# elif defined(GDK_WINDOWING_QUARTZ) || defined(GDK_WINDOWING_X11)
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.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]