Subject: | truetype font problem workaround. |
Date: | Thu, 5 Oct 2017 00:45:26 +0000 |
To: | "'bug-GD [...] rt.cpan.org'" <bug-GD [...] rt.cpan.org> |
From: | "GRAY Andrew G (SPARQ)" <andrewg.gray [...] sparq.com.au> |
When using ttf file in the current directory, you need to prepend with ./
This maybe should not be a bug, but should at least be clear in the documentation.
Example, Tahoma font file exists in same dir as perl script.
my $ttfFile='tahomabd.ttf'; # doesn't work
my $ttfFile='./tahomabd.ttf'; # works
...
my @junk = $strImg->stringFT($fgColour,$ttfFile,$height,0,1,$height+1,$string);
Regards,
Andrew G Gray,
Unix Administration, Control Systems/SCADA
*************************************************************************************
This email message (including any file attachments transmitted with it) is for the sole use of the intended recipient(s) and may contain confidential and legally privileged information. Any unauthorised review, use, alteration, disclosure or distribution of this email (including any attachments) by an unintended recipient is prohibited. If you have received this email in error, please notify the sender by return email and destroy all copies of the original message. Any confidential or legal professional privilege is not waived or lost by any mistaken delivery of the email. SPARQ Solutions accepts no responsibility for the content of any email which is sent by an employee which is of a personal nature.
Sender Details:
SPARQ Solutions
PO Box 15760 City East, Brisbane QLD Australia 4002
1800 814 757
SPARQ Solutions policy is to not send unsolicited electronic messages. Suspected breaches of this policy can be reported by replying to this message including the original message and the word "UNSUBSCRIBE" in the subject.
*************************************************************************************