Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Solution From Another Node

by vbrtrmn (Pilgrim)
on Jan 08, 2003 at 14:31 UTC ( [id://225264]=note: print w/replies, xml ) Need Help??


in reply to Font::TTF Give Me the Font Name

Simplified from the TrueType font gallery node.

#!perl.exe -w use strict; use Font::TTF::Font; use CGI qw(:all); print header(); my $f = 'arial.ttf'; my $fontname = Font::TTF::Font->open($f) || $f; $fontname = $fontname->{name} || $f if ref $fontname; $fontname = $fontname->read->find_name(4) || $f if ref $fontna +me; print $fontname; exit;

--
paul

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://225264]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found