FS#70951 - [perl-tk] 804.036-2 breaks font selection

Attached to Project: Arch Linux
Opened by Steven Winikoff (smw) - Wednesday, 19 May 2021, 22:20 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Perl/Tk scripts running with perl-tk-804.036-2 are unable to select font faces. The same script works fine with 804.036-1

Additional info:
* package version(s) perl-tk-804.036-2

Steps to reproduce:

Run any Perl/Tk script which tries to select a font face. The selected face should be displayed, but isn't, as in the two attached screen captures from this sample script:

#!/usr/bin/perl

use Tk;

my $mw = MainWindow->new(-title => 'Font Example');
my $font1 = 'Mono 12';
my $font2 = '{Monotype Sorts} 12';
my $text = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789';
my $t1 = $mw->Message(-text=>$text , -font=>$font1, -width=>800); $t1->pack();
my $t2 = $mw->Message(-text=>$text , -font=>$font2, -width=>800); $t2->pack();

MainLoop;
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:16 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/perl-tk/issues/1
Comment by Paul Clark (pdc) - Saturday, 14 August 2021, 14:31 GMT
The current vresion of perl-tk uses libx11, which can only display bitmap fonts. perl-tk-xft in the AUR (https://aur.archlinux.org/packages/perl-tk-xft/) uses libxft, which can display TrueType fonts.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...