[libGD] #63 [Task opened] GDI Like Freetype bounding box and underline spacing and thickness

[email protected] (libGD)
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 - Xavier Garreau (xgarreau)

Attached to Project - libGD
Summary - GDI Like Freetype bounding box and underline spacing and thickness
Task Type - Feature Request
Category - Freetype
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Normal
Reported Version - 2.0.34
Due in Version - Undecided
Due Date - Undecided
Details - Hi.

I wanted to be able to get the bounding box based on the font used rather than on the pixels drawn..*

Moreover I needed to know where the underline should be drawn and what thickness it should be.

So I wrote a patch for gd2.0.33, I see it has not been incorporated in 2.0.34 so I send it to you, just in case you find it useful.

An example of its use is attached as well..

The main use of this is to align multiline texts and proper drawing of underlining. The calculated bounding box also is the same than the one returned by windows gdi.

I wrote that to help porting a text rendering plugin using windows gdi to linux, using GD.

An important thing to notice : the bounding box returned by gdImageStringFTEx or gdImageStringFT. Values are returned in new fields added to the gdFTStringExtra structure and those are filled only if a new flag is used : gdFTEX_RETURNFACEINFO.

Regards,

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

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.