mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01: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:
@@ -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) {
|
||||
|
||||
@@ -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