This queue is for tickets about the Imager CPAN distribution.

Maintainer(s)' notes

Tickets for Imager are now on github at https://github.com/tonycoz/imager

Report information
The Basics
Id:
122225
Status:
resolved
Priority:
Medium/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
ckuskie [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
(no value)
Fixed in:
(no value)



Subject: RFE: Automatic font type detection
It looks like Imager uses file extensions to detect what kind of font is being supplied to Imager::Font. It would be really nice if it used something like Image::Exiftool to do that detection instead.
On Sun Jun 25 12:22:24 2017, COLINK wrote:
Show quoted text
> It looks like Imager uses file extensions to detect what kind of font > is being supplied to Imager::Font. It would be really nice if it used > something like Image::Exiftool to do that detection instead.
Sorry about the delay in noticing this. I assume you mean some sort of magic number detection like Imager already does for images. Image::Exiftool sounds a little heavy for that though. It's an idea, but it may slow down creating a new font object, since Imager would need to open the file, check for magic, close the file, then hand off to the correct font handler. You can get pretty much the detection behaviour by always using the FT2 handler, since Freetype 2 supports and overwhelming superset of the fonts the other drivers support. I'll leave this open as a wishlist item, but it's pretty unlikely I'll implement it. Thanks, Tony


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.