wxHtmlWindow.SetFonts

The constants HTML_FONT_SIZE_1..7 don't appear to be defined.
Unfortunately there isn't a GetFonts method either. I basically
want to reduce the font sizes to about 0.7 of what they are
but their original sizes are platform specific with no way
to find out what they are programmatically.

Roger

Roger Binns wrote:

The constants HTML_FONT_SIZE_1..7 don't appear to be defined.
Unfortunately there isn't a GetFonts method either. I basically
want to reduce the font sizes to about 0.7 of what they are
but their original sizes are platform specific with no way
to find out what they are programmatically.

I'll add them to the wrappers. In the meantime here are the defines:

#ifdef __WXMSW__
    #define wxHTML_FONT_SIZE_1 7
    #define wxHTML_FONT_SIZE_2 8
    #define wxHTML_FONT_SIZE_3 10
    #define wxHTML_FONT_SIZE_4 12
    #define wxHTML_FONT_SIZE_5 16
    #define wxHTML_FONT_SIZE_6 22
    #define wxHTML_FONT_SIZE_7 30
#elif defined(__WXMAC__)
    #define wxHTML_FONT_SIZE_1 9
    #define wxHTML_FONT_SIZE_2 12
    #define wxHTML_FONT_SIZE_3 14
    #define wxHTML_FONT_SIZE_4 18
    #define wxHTML_FONT_SIZE_5 24
    #define wxHTML_FONT_SIZE_6 30
    #define wxHTML_FONT_SIZE_7 36
#else
    #define wxHTML_FONT_SIZE_1 10
    #define wxHTML_FONT_SIZE_2 12
    #define wxHTML_FONT_SIZE_3 14
    #define wxHTML_FONT_SIZE_4 16
    #define wxHTML_FONT_SIZE_5 19
    #define wxHTML_FONT_SIZE_6 24
    #define wxHTML_FONT_SIZE_7 32
#endif

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!