Well, it's not exactly *ttf_print* that is the problem, but it does
suffer from it. There's a color remapping issue with 16 bit mode I am
working on currently. You see, "*Imager*" is all 32/24 bit only, and to
make it work with 16 bit, I have to convert between color modes. If the
code isn't exactly right, you can get artifacts.
Most of my development has been on 32 bit mode output, but when I ran on
a *Raspberry PI2* recently (which I use for 16 bit testing), I noticed
these artifacts on all operations using *Imager*. I have recently
accelerated the 32 bit to 16 bit and 32 bit to 16 bit conversion
routines (in C code) to make these operations quick for folks with 16
bit TFT displays. However, some bugs have crept in.
While I attempt to fix this, as a test, try nesting these commands
around your ttf_print code to see if they "fix" the artifacting. Note,
this will make ttf_print considerably slower, and this is only a test,
as I will get you corrected code soon. I don't expect you to use this
in your "production" code. I just want to see if it fixes things visually:
$f->acceleration(0);
$f->ttf_print....etc
$f->acceleration(1);
This will force the engine to use the Perl routines. Let me know if
anything changes. Meanwhile I will get what issues I can find fixed on
my end for you.
Rich
On 7/7/2016 11:35 PM, Erik Olson via RT wrote:
Show quoted text> Fri Jul 08 01:35:00 2016: Request 115967 was acted upon.
> Transaction: Ticket created by snowrodeo@gmail.com
> Queue: Graphics-Framebuffer
> Subject: Bug with ttf_print
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: snowrodeo@gmail.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=115967 >
>
>
> Hi again,
>
> I am seeing another bug(s) with ttf_print.
>
> 1) There seems to be an extra 'line' below the line printed. So if I print
> at, say (40,40) with a height of 30, there seems to be a discolored area
> below the printed line that seems to be about double the intended height
> 2) When I intentionally overlap another line of text into this lower
> region, the discoloration is worse (see the "Lin" in the picture)
> 3) When the lower section is below the bottom of the frame buffer, nothing
> prints. See the black hunk at the bottom
>
> Attached files:
> 1) iPhone picture
> 2) Code
> 3) Dumper data
>
> Please let me know what I can do to help debug.
>
> Thanks,
>
> -Erik
>