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.

This commit is contained in:
vlaad committed 2004-04-10 19:27:54 +00:00
1 parent f54b0de7b4
commit 500d569c79
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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) {