mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 04:14:20 +01:00
- Changed fallback font to 'sans serif:pixelsize=12'
- Fixed convertfonts to account for $LANG - Fixed convertfonts logic a bit and no longer output slant and weight if they are the default ones (medium and roman) - Applied Pascal's fix for GNUstep menus (modified to also include submenus) Still this is not the proper fix, as it can't differentiate between submenus and other windows at the floating window level. Correct fix needs some extra hints to be set by GNUstep on menus.
This commit is contained in:
@@ -235,7 +235,7 @@ lookup_available_fonts(_Panel *panel)
|
||||
if (pat)
|
||||
FcPatternDestroy(pat);
|
||||
|
||||
panel->fonts->families[panel->fonts->familyn++].name= wstrdup("sans");
|
||||
panel->fonts->families[panel->fonts->familyn++].name= wstrdup("sans serif");
|
||||
family= panel->fonts->families + panel->fonts->familyn-1;
|
||||
family->styles= wmalloc(sizeof(FontStyle)*2);
|
||||
family->stylen= 2;
|
||||
@@ -453,7 +453,7 @@ selectedOption(WMWidget *w, void *data)
|
||||
FcDefaultSubstitute(pat);
|
||||
|
||||
if (FcPatternGetString(pat, FC_FAMILY, 0, &name) != FcResultMatch)
|
||||
name= "sans";
|
||||
name= "sans serif";
|
||||
|
||||
found= 0;
|
||||
// select family
|
||||
@@ -672,7 +672,7 @@ createPanel(Panel *p)
|
||||
}
|
||||
}
|
||||
else
|
||||
WMAddListItem(panel->familyL, "sans");
|
||||
WMAddListItem(panel->familyL, "sans serif");
|
||||
|
||||
WMSetListAction(panel->familyL, selectedFamily, panel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user