mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 00:50:34 +02:00
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:
1 parent
f54b0de7b4
commit
500d569c79
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user