cairo_font_weight_t weight);
double m_size;
- bool m_underlined;
double m_red;
double m_green;
double m_blue;
cairo_font_face_t *m_font;
#elif defined(__WXGTK__)
PangoFontDescription* m_font;
+ bool m_underlined;
#endif
// These members are used when the font is created from its face name and
InitColour(col);
m_size = font.GetPointSize();
- m_underlined = font.GetUnderlined();
#ifdef __WXMAC__
m_font = cairo_quartz_font_face_create_for_cgfont( font.OSXGetCGFont() );
#elif defined(__WXGTK__)
m_font = pango_font_description_copy( font.GetNativeFontInfo()->description );
+ m_underlined = font.GetUnderlined();
#else
InitFontComponents
(
m_font = NULL;
#endif
- m_underlined = (flags & wxFONTFLAG_UNDERLINED) != 0;
+ // There is no need to set m_underlined under wxGTK in this case, it can
+ // only be used if m_font != NULL.
InitFontComponents
(