From 0d7de37eb07c6b1c531dddb54063ac95d4db5874 Mon Sep 17 00:00:00 2001 From: cinamod Date: Tue, 9 Sep 2003 15:07:33 +0000 Subject: [PATCH] fix font problem in workrave --- modules/engines/ms-windows/wimp_style.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/modules/engines/ms-windows/wimp_style.c b/modules/engines/ms-windows/wimp_style.c index d634150863..eeec05478f 100755 --- a/modules/engines/ms-windows/wimp_style.c +++ b/modules/engines/ms-windows/wimp_style.c @@ -161,34 +161,38 @@ sys_font_to_pango_font (SystemFontType type, char * buf) switch (lf.lfWeight) { case FW_THIN: case FW_EXTRALIGHT: - weight = "ultralight"; + weight = "Ultra-Light"; break; case FW_LIGHT: - weight = "light"; + weight = "Light"; + break; + + case FW_BOLD: + weight = "Bold"; break; case FW_SEMIBOLD: - case FW_BOLD: - weight = "bold"; + weight = "Semi-Bold"; break; case FW_ULTRABOLD: - weight = "ultrabold"; + weight = "Ultra-Bold"; break; case FW_HEAVY: - weight = "heavy"; + weight = "Heavy"; + break; default: - weight = "normal"; + weight = ""; break; } if (lf.lfItalic) - style="italic"; + style="Italic"; else - style="normal"; + style=""; pt_size = -MulDiv(lf.lfHeight, 72, GetDeviceCaps(GetDC(GetDesktopWindow()),