support underlined fonts (patch 1448089)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
01c54165d1
commit
186344760d
@ -157,6 +157,7 @@ wxGTK:
|
||||
- Polygon and line drawing speeded up if there is no scaling.
|
||||
- Fixed problems with CJK input method.
|
||||
- Implemented ScrollLines/Pages() for all windows (Paul Cornett)
|
||||
- Support underlined fonts in wxTextCtrl
|
||||
|
||||
wxMac:
|
||||
|
||||
|
@ -85,6 +85,19 @@ static void wxGtkTextApplyTagsFromAttr(GtkTextBuffer *text_buffer,
|
||||
NULL );
|
||||
gtk_text_buffer_apply_tag (text_buffer, tag, start, end);
|
||||
g_free (font_string);
|
||||
|
||||
if (attr.GetFont().GetUnderlined())
|
||||
{
|
||||
g_snprintf(buf, sizeof(buf), "WXFONTUNDERLINE");
|
||||
tag = gtk_text_tag_table_lookup( gtk_text_buffer_get_tag_table( text_buffer ),
|
||||
buf );
|
||||
if (!tag)
|
||||
tag = gtk_text_buffer_create_tag( text_buffer, buf,
|
||||
"underline-set", TRUE,
|
||||
"underline", PANGO_UNDERLINE_SINGLE,
|
||||
NULL );
|
||||
gtk_text_buffer_apply_tag (text_buffer, tag, start, end);
|
||||
}
|
||||
}
|
||||
|
||||
if (attr.HasTextColour())
|
||||
|
Loading…
Reference in New Issue
Block a user