mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 08:22:37 +01:00
- If fonts are specified as xlfd, convert to fc names before creating them.
This was we internally only deal with fc names and properties. It will incur a small performance hit as the font needs to be parsed/unparsed, but this is only for backward-compatibility to support old xlfd names. People are encouraged to swtich to fontconfig names. - WINGs no longer adds sans as a fallback for internal fonts. It is automatically done by fontconfig (if it can't find the requested font it will use the closest match which is the default font: sans-serif) - Added code to honor the AntialiasesText global option - Fixed style names for WMCopyFontWithStyle() - Added fonts in style files where they were missing. Also changed some fonts to better defaults.
This commit is contained in:
@@ -1270,7 +1270,8 @@ wShowInfoPanel(WScreen *scr)
|
||||
WMResizeWidget(panel->name1L, 240, 30 - sepWidth);
|
||||
WMMoveWidget(panel->name1L, 100, 30);
|
||||
|
||||
name = "Lucida Sans,Comic Sans MS,URW Gothic L,Trebuchet MS,sans:bold:pixelsize=26";
|
||||
name = "Lucida Sans,Comic Sans MS,URW Gothic L,Trebuchet MS"
|
||||
":bold:pixelsize=26:antialias=true";
|
||||
font = WMCreateFont(scr->wmscreen, name);
|
||||
strbuf = "Window Maker";
|
||||
if (font) {
|
||||
@@ -1290,7 +1291,7 @@ wShowInfoPanel(WScreen *scr)
|
||||
panel->name2L = WMCreateLabel(panel->win);
|
||||
WMResizeWidget(panel->name2L, 240, 24);
|
||||
WMMoveWidget(panel->name2L, 100, 60);
|
||||
name = "URW Gothic L,Nimbus Sans L,sans:pixelsize=16";
|
||||
name = "URW Gothic L,Nimbus Sans L:pixelsize=16:antialias=true";
|
||||
font = WMCreateFont(scr->wmscreen, name);
|
||||
if (font) {
|
||||
WMSetLabelFont(panel->name2L, font);
|
||||
|
||||
@@ -272,11 +272,11 @@
|
||||
#define DEF_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=12\""
|
||||
#define DEF_MENU_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=12\""
|
||||
#define DEF_MENU_ENTRY_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
|
||||
#define DEF_ICON_TITLE_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=8\""
|
||||
#define DEF_CLIP_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=10\""
|
||||
#define DEF_ICON_TITLE_FONT "\"Arial,Luxi Sans:pixelsize=9\""
|
||||
#define DEF_CLIP_TITLE_FONT "\"Verdana:bold:pixelsize=10\""
|
||||
#define DEF_INFO_TEXT_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
|
||||
|
||||
#define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=24\""
|
||||
#define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=24\""
|
||||
|
||||
|
||||
#define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
|
||||
|
||||
Reference in New Issue
Block a user