summaryrefslogtreecommitdiff
path: root/examples/viewer.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-02-11 09:49:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-02-11 09:49:27 +0000
commit6316f1a5c6e868f9e82fceebbb954346e2ba8839 (patch)
treeb584b7bd53efe3a00f1f15aaef1382da0c4390f4 /examples/viewer.c
parent1b2e543aa5bc412062c97a9d37c4c5292604025f (diff)
downloadpango-6316f1a5c6e868f9e82fceebbb954346e2ba8839.tar.gz
Up version to match 0.6 release that was made yesterday.
Thu Feb 10 23:45:27 2000 Owen Taylor <otaylor@redhat.com> * configure.in: Up version to match 0.6 release that was made yesterday. * examples/viewer.c (main): Look for fixed if sans isn't found as an initial font. * modules/Makefile.am: Add an install rule to run pango-querymodules. * modules/*/Makefile.am (module_LTLIBRARIES): Set up appropriate install rules. * libpango/Makefile.am: Break the X code out into a separate library.
Diffstat (limited to 'examples/viewer.c')
-rw-r--r--examples/viewer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/viewer.c b/examples/viewer.c
index 4fe00d2a..4967a35e 100644
--- a/examples/viewer.c
+++ b/examples/viewer.c
@@ -1177,6 +1177,18 @@ main (int argc, char **argv)
font_description.stretch = PANGO_STRETCH_NORMAL;
font = pango_context_load_font (context, &font_description, font_size);
+ if (!font)
+ {
+ g_free (font_description.family_name);
+ font_description.family_name = g_strdup ("fixed");
+ font = pango_context_load_font (context, &font_description, font_size);
+
+ if (!font)
+ {
+ g_warning ("Can't load an initial font!\n");
+ exit (1);
+ }
+ }
/* Create the user interface
*/