Closed Thread Icon

Topic awaiting preservation: PHP Read TTF Font Name Pages that link to <a href="https://ozoneasylum.com/backlink?for=27062" title="Pages that link to Topic awaiting preservation: PHP Read TTF Font Name" rel="nofollow" >Topic awaiting preservation: PHP Read TTF Font Name\

 
Author Thread
bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-29-2005 00:55

Anyone know an easy way to read the Font name from a TTF font file via php?



.:[ Never resist a perfect moment ]:.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 11-29-2005 09:02

they bitdamaged,
you can find the whole file format spec at http://www.microsoft.com/typography/SpecificationsOverview.mspx

chapter 2 seems to be describing the format in detail enough to be able to open it up with php->fopen() and search what you're looking for.
Not that easy, but it should be doable in a couple of hours ;-)

so long,

->Tyberius Prime

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-29-2005 18:25
quote:
but it should be doable in a couple of hours ;-)



thats what I was trying to avoid



.:[ Never resist a perfect moment ]:.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-29-2005 20:38

Actually which raises another question. I've never had to deal with reading binary data like image headers etc, and it's something I should probably learn at some point. Anyone know of a good tutorial on how this is done?



.:[ Never resist a perfect moment ]:.

« BackwardsOnwards »

Show Forum Drop Down Menu