Further tweaks for UTF8 font-issues on Windows
This commit is contained in:
parent
a1d53c1d2e
commit
37243ce61b
@ -689,28 +689,28 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
|
|||||||
layout->show_in_cairo_context (cr);
|
layout->show_in_cairo_context (cr);
|
||||||
cr->move_to (xl + w + 5, yl);
|
cr->move_to (xl + w + 5, yl);
|
||||||
|
|
||||||
layout->set_font_description (UIConfiguration::instance ().get_LargeMonospaceFont ());
|
layout->set_font_description (UIConfiguration::instance ().get_LargeFont ());
|
||||||
cr->set_source_rgba (.9, .9, .9, 1.0);
|
cr->set_source_rgba (.9, .9, .9, 1.0);
|
||||||
if (lufs > pi->LUFS_range[0]
|
if (lufs > pi->LUFS_range[0]
|
||||||
|| (pi->enable[0] && dbfs > pi->level[0])
|
|| (pi->enable[0] && dbfs > pi->level[0])
|
||||||
|| (pi->enable[1] && dbtp > pi->level[1])
|
|| (pi->enable[1] && dbtp > pi->level[1])
|
||||||
) {
|
) {
|
||||||
cr->set_source_rgba (1, 0, .0, 1.0);
|
cr->set_source_rgba (1, 0, .0, 1.0);
|
||||||
|
#ifdef PLATFORM_WINDOWS
|
||||||
|
layout->set_text ("X");
|
||||||
|
#else
|
||||||
layout->set_text ("\u274C"); // cross mark
|
layout->set_text ("\u274C"); // cross mark
|
||||||
|
#endif
|
||||||
} else if (lufs < pi->LUFS_range[1]) {
|
} else if (lufs < pi->LUFS_range[1]) {
|
||||||
cr->set_source_rgba (.6, .7, 0, 1.0);
|
cr->set_source_rgba (.6, .7, 0, 1.0);
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
layout->set_text ("\u2713"); // check mark
|
layout->set_text ("\u2713"); // check mark
|
||||||
#else
|
#else
|
||||||
layout->set_text ("\u2714\u26A0"); // warning sign
|
layout->set_text ("\u2713\u26A0"); // check mark + warning sign
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
cr->set_source_rgba (.1, 1, .1, 1.0);
|
cr->set_source_rgba (.1, 1, .1, 1.0);
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
layout->set_text ("\u2713"); // check mark
|
|
||||||
#else
|
|
||||||
layout->set_text ("\u2714"); // heavy check mark
|
layout->set_text ("\u2714"); // heavy check mark
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
int ww, hh;
|
int ww, hh;
|
||||||
layout->get_pixel_size (ww, hh);
|
layout->get_pixel_size (ww, hh);
|
||||||
|
@ -822,28 +822,24 @@ LoudnessDialog::test_conformity ()
|
|||||||
|| (preset.enable[0] && dbfs > preset.level[0])
|
|| (preset.enable[0] && dbfs > preset.level[0])
|
||||||
|| (preset.enable[1] && dbtp > preset.level[1])
|
|| (preset.enable[1] && dbtp > preset.level[1])
|
||||||
) {
|
) {
|
||||||
|
#ifdef PLATFORM_WINDOWS
|
||||||
|
l = manage (new Label ("X", ALIGN_CENTER)); // cross mark
|
||||||
|
#else
|
||||||
l = manage (new Label ("\u274C", ALIGN_CENTER)); // cross mark
|
l = manage (new Label ("\u274C", ALIGN_CENTER)); // cross mark
|
||||||
l->modify_font (UIConfiguration::instance ().get_NormalMonospaceFont ());
|
#endif
|
||||||
|
l->modify_font (UIConfiguration::instance ().get_BigFont ());
|
||||||
l->modify_fg (Gtk::STATE_NORMAL, color_fail);
|
l->modify_fg (Gtk::STATE_NORMAL, color_fail);
|
||||||
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
|
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
|
||||||
set_tooltip (*l, "The signal is too loud.");
|
set_tooltip (*l, "The signal is too loud.");
|
||||||
} else if (lufs_i < preset.LUFS_range[1]) {
|
} else if (lufs_i < preset.LUFS_range[1]) {
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
l = manage (new Label ("\u2713", ALIGN_CENTER)); // check mark
|
l = manage (new Label ("\u2713", ALIGN_CENTER)); // check mark
|
||||||
#else
|
l->modify_font (UIConfiguration::instance ().get_BigFont ());
|
||||||
l = manage (new Label ("\u2714", ALIGN_CENTER)); // heavy check mark
|
|
||||||
#endif
|
|
||||||
l->modify_font (UIConfiguration::instance ().get_NormalMonospaceFont ());
|
|
||||||
l->modify_fg (Gtk::STATE_NORMAL, color_warn);
|
l->modify_fg (Gtk::STATE_NORMAL, color_warn);
|
||||||
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
|
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
|
||||||
set_tooltip (*l, "The signal is too quiet, but satisfies the max. loudness spec.");
|
set_tooltip (*l, "The signal is too quiet, but satisfies the max. loudness spec.");
|
||||||
} else {
|
} else {
|
||||||
#ifdef PLATFORM_WINDOWS
|
l = manage (new Label ("\u2714", ALIGN_CENTER)); // heavy check mark
|
||||||
l = manage (new Label ("\u2714", ALIGN_CENTER)); // check mark
|
l->modify_font (UIConfiguration::instance ().get_BigFont ());
|
||||||
#else
|
|
||||||
l = manage (new Label ("\u2713", ALIGN_CENTER)); // heavy check mark
|
|
||||||
#endif
|
|
||||||
l->modify_font (UIConfiguration::instance ().get_NormalMonospaceFont ());
|
|
||||||
l->modify_fg (Gtk::STATE_NORMAL, color_good);
|
l->modify_fg (Gtk::STATE_NORMAL, color_good);
|
||||||
set_tooltip (*l, "Signal loudness is within the spec.");
|
set_tooltip (*l, "Signal loudness is within the spec.");
|
||||||
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
|
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user