… | |
… | |
232 | |
232 | |
233 | $markup .= $mod & DC::KMOD_NUM |
233 | $markup .= $mod & DC::KMOD_NUM |
234 | ? "[NUM]" |
234 | ? "[NUM]" |
235 | : "[<span foreground='#888'>num</span>]"; |
235 | : "[<span foreground='#888'>num</span>]"; |
236 | |
236 | |
|
|
237 | # <tt> around next statement works around some bug that keeps the |
|
|
238 | # "font =>" from being used on windows |
237 | $MODBOX->set_markup ($markup); |
239 | $MODBOX->set_markup ("<tt>$markup</tt>"); |
238 | } |
240 | } |
239 | |
241 | |
240 | ############################################################################# |
242 | ############################################################################# |
241 | #TODO: maybe move into own audio module... |
243 | #TODO: maybe move into own audio module... |
242 | |
244 | |
… | |
… | |
2178 | can_events => 1, |
2180 | can_events => 1, |
2179 | can_hover => 1, |
2181 | can_hover => 1, |
2180 | markup => "", |
2182 | markup => "", |
2181 | align => 0, |
2183 | align => 0, |
2182 | font => $FONT_FIXED, |
2184 | font => $FONT_FIXED, |
2183 | tooltip => "#modifier_box"; |
2185 | tooltip => "#modifier_box", |
|
|
2186 | tooltip_width => 0.67, |
|
|
2187 | ; |
2184 | |
2188 | |
2185 | update_modbox; |
2189 | update_modbox; |
2186 | |
2190 | |
2187 | (new DC::UI::Frame |
2191 | (new DC::UI::Frame |
2188 | bg => [0, 0, 0, 0.4], |
2192 | bg => [0, 0, 0, 0.4], |
… | |
… | |
2504 | DejaVuSansMono-BoldOblique.ttf |
2508 | DejaVuSansMono-BoldOblique.ttf |
2505 | ); |
2509 | ); |
2506 | |
2510 | |
2507 | DC::add_font $_ for @fonts; |
2511 | DC::add_font $_ for @fonts; |
2508 | |
2512 | |
2509 | DC::pango_init; |
|
|
2510 | |
|
|
2511 | $FONT_PROP = new_from_file DC::Font $fonts[0]; |
2513 | $FONT_PROP = new_from_file DC::Font $fonts[0]; |
2512 | $FONT_FIXED = new_from_file DC::Font $fonts[1]; |
2514 | $FONT_FIXED = new_from_file DC::Font $fonts[1]; |
2513 | |
2515 | |
2514 | $FONT_PROP->make_default; |
2516 | $FONT_PROP->make_default; |
|
|
2517 | |
|
|
2518 | DC::pango_init; |
2515 | } |
2519 | } |
2516 | |
2520 | |
2517 | # compare mono (ft) vs. rgba (cairo) |
2521 | # compare mono (ft) vs. rgba (cairo) |
2518 | # ft - 1.8s, cairo 3s, even in alpha-only mode |
2522 | # ft - 1.8s, cairo 3s, even in alpha-only mode |
2519 | # for my $rgba (0..1) { |
2523 | # for my $rgba (0..1) { |