Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#110 Set CharSet for Log Window

closed-accepted
Fabian Keil
5
2009-03-09
2009-03-09
Br
No

Without this patch, log-font-name won't work with some fonts.

More information about this issue here: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=2662382&group_id=11118

--- privoxy-3.0.11-stable.org/w32log.c 2009-01-11 22:55:42.000000000 +0800
+++ privoxy-3.0.11-stable/w32log.c 2009-03-09 14:16:35.372237200 +0800
@@ -706,6 +706,8 @@
memset(&format, 0, sizeof(format));
format.cbSize = sizeof(format);
format.dwMask = CFM_BOLD | CFM_UNDERLINE | CFM_STRIKEOUT | CFM_ITALIC | CFM_COLOR | CFM_FACE | CFM_SIZE;
+ format.dwMask |= CFM_CHARSET;
+ format.bCharSet = DEFAULT_CHARSET;
format.yHeight = (g_nFontSize * 1440) / 72;
strcpy(format.szFaceName, g_szFontFaceName);
if (style == STYLE_NONE)

Discussion

  • Br
    Br
    2009-03-09

     
  • Fabian Keil
    Fabian Keil
    2009-03-09

    • assigned_to: nobody --> fabiankeil
    • status: open --> closed-accepted
     
  • Fabian Keil
    Fabian Keil
    2009-03-09

    Thanks a lot.

    Patch committed with a minor style change
    (merged the two format.dwMask lines).