From b6cdd9d482a905c0758a130e0aeba5c907d9afcc Mon Sep 17 00:00:00 2001 From: Dmitry Karasik Date: Sat, 23 Nov 2024 14:21:34 +0100 Subject: [PATCH] text_out can show colored fonts too --- examples/fontdlg.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fontdlg.pl b/examples/fontdlg.pl index 1e1348a3..e72ec9ac 100644 --- a/examples/fontdlg.pl +++ b/examples/fontdlg.pl @@ -634,7 +634,7 @@ sub create_info_window } $self-> draw_item_background( $canvas, $x, $y + 1, $x2, $y2, $prelight ); if ( defined( my $c = $charmap{$itemIndex} )) { - $canvas-> text_shape_out( chr($c), $x + $ih / 4, $y + $ih / 4); + $canvas-> text_out( chr($c), $x + $ih / 4, $y + $ih / 4); } $canvas-> set( color => $cs[0], backColor => $cs[1]) if $focused || $prelight; },