From 500d569c79e376a0526bc41231139701b74adc8d Mon Sep 17 00:00:00 2001 From: vlaad Date: Sat, 10 Apr 2004 19:27:54 +0000 Subject: [PATCH] style property is supposed to override weight and slant, unfortunately it doesn't do it cleanly, and you might end up with italic fonts. this fixes the issue by not making the assumption. --- util/getstyle.c | 2 +- util/setstyle.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/getstyle.c b/util/getstyle.c index 9629de14..061a2065 100644 --- a/util/getstyle.c +++ b/util/getstyle.c @@ -475,7 +475,7 @@ xlfdToFc(char *xlfd) Fcname = wstrconcat(Fcname, size); } if (strcmp(weight, "*") != 0) { - Fcname = wstrconcat(Fcname, ":style="); + Fcname = wstrconcat(Fcname, ":weight="); Fcname = wstrconcat(Fcname, capitalize(weight)); } if (strcmp(slant, "*") != 0) { diff --git a/util/setstyle.c b/util/setstyle.c index 41d734de..e8e88f3a 100644 --- a/util/setstyle.c +++ b/util/setstyle.c @@ -137,7 +137,7 @@ xlfdToFc(char *xlfd) Fcname = wstrconcat(Fcname, size); } if (strcmp(weight, "*") != 0) { - Fcname = wstrconcat(Fcname, ":style="); + Fcname = wstrconcat(Fcname, ":weight="); Fcname = wstrconcat(Fcname, capitalize(weight)); } if (strcmp(slant, "*") != 0) {