Skip to content

Commit

Permalink
text_out can show colored fonts too
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 23, 2024
1 parent 1cc1e68 commit b6cdd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fontdlg.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit b6cdd9d

Please sign in to comment.