summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-07-13 04:14:57 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-07-13 04:14:57 +0000
commitf16781d565d6da399141797e0377e65abef04f51 (patch)
tree5592c274327cc5f48f7baaaf0269cc55491ef4f5
parent23ec5d4ce4b38d19e9271463563fc94b587e5f93 (diff)
Handle cases where FC_HINTING is enabled but FC_HINT_STYLE isn't. Not thatvte_0_4_8
* src/vte.c: Handle cases where FC_HINTING is enabled but FC_HINT_STYLE isn't. Not that that makes any sense, but there you go.
-rw-r--r--src/vte.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vte.c b/src/vte.c
index 9515be8..b5d4dad 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7883,16 +7883,18 @@ vte_default_substitute(VteTerminal *terminal, XftPattern *pattern)
}
}
-#ifdef FC_HINTING
/* If we're using Xft2/fontconfig, then all of the Xft1 API calls are
* being mapped to fontconfig by the preprocessor, but these settings
* are fontconfig-only, so we use the native FontConfig API here. */
+#ifdef FC_HINTING
if (hinting >= 0) {
result = FcPatternGetBool(pattern, FC_HINTING, 0, &i);
if (result == FcResultNoMatch) {
FcPatternAddBool(pattern, FC_HINTING, hinting > 0);
}
}
+#endif
+#ifdef FC_HINT_STYLE
if (hintstyle != NULL) {
result = FcPatternGetInteger(pattern, FC_HINT_STYLE, 0, &i);
if (result == FcResultNoMatch) {