[libGD] #104 [Task opened] bounding rectangle pixel rounding error

[email protected] (libGD) Mon, 30 Jul 2007 22:15:34 +0000
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below.

User who did this - Bob Rostermann (rfoNYC)

Attached to Project - libGD
Summary - bounding rectangle pixel rounding error
Task Type - Bug Report
Category - Freetype
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - 2.0.35
Due in Version - Undecided
Due Date - Undecided
Details - in gdft.c, bounding rectangle calcs incorrectly adjust of brect to accomodate integer truncation.
fix:
1367,1370c1367,1370
<       total_min.x -= METRIC_RES;
<       total_min.y -= METRIC_RES;
<       total_max.x += METRIC_RES;
<       total_max.y += METRIC_RES;
---
>       total_min.x -= METRIC_RES/2;
>       total_min.y -= METRIC_RES/2;
>       total_max.x += METRIC_RES/2;
>       total_max.y += METRIC_RES/2;

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=104

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.