mirror of https://github.com/odrling/Aegisub
Apply the same fix as r4027.. r4053 exposed the same problem. There are still plenty of cases around aegisub that could create undefined behaviour if we forcibly set a font via it's name or face, we should only be using famlies for the default or shipping fonts with the program itself. see #1130
Originally committed to SVN as r4055.
This commit is contained in:
parent
283beba0fd
commit
d03dc76dcc
|
@ -511,6 +511,8 @@ void AudioDisplay::DrawTimescale(wxDC &dc) {
|
|||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT));
|
||||
wxFont scaleFont;
|
||||
scaleFont.SetFaceName(_T("Tahoma")); // FIXME: hardcoded font name
|
||||
if (!scaleFont.IsOk())
|
||||
scaleFont.SetFamily(wxFONTFAMILY_SWISS );
|
||||
scaleFont.SetPointSize(8);
|
||||
dc.SetFont(scaleFont);
|
||||
|
||||
|
|
Loading…
Reference in New Issue