summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pangoft2topgm.c3
-rw-r--r--examples/renderdemo.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/pangoft2topgm.c b/examples/pangoft2topgm.c
index f00294f6..40d6bd21 100644
--- a/examples/pangoft2topgm.c
+++ b/examples/pangoft2topgm.c
@@ -146,6 +146,9 @@ int main(int argc, char *argv[])
char *prog_name = g_path_get_basename (argv[0]);
g_type_init();
+
+ if (g_file_test ("./pangorc", G_FILE_TEST_EXISTS))
+ putenv ("PANGO_RC_FILE=./pangorc");
/* Parse command line */
argp=1;
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index f00294f6..40d6bd21 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -146,6 +146,9 @@ int main(int argc, char *argv[])
char *prog_name = g_path_get_basename (argv[0]);
g_type_init();
+
+ if (g_file_test ("./pangorc", G_FILE_TEST_EXISTS))
+ putenv ("PANGO_RC_FILE=./pangorc");
/* Parse command line */
argp=1;