# Pdf writer font not found

**URL:** <https://www.ruby-forum.com/t/pdf-writer-font-not-found/84327>\
**Category:** Ruby\
**Created:** [February 3, 2007, 5:40am UTC](https://www.ruby-forum.com/t/pdf-writer-font-not-found/84327 "2007-02-03T05:40:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 3, 2007, 5:40am UTC](https://www.ruby-forum.com/t/pdf-writer-font-not-found/84327/1 "2007-02-03T05:40:58Z")

</div>

I cannot figure out how to get a font loaded. I have in c:\windows/  
fonts a font file named w128m.ttf. It displays as “WASP 128  
M(TrueType)”. I haven’t been able to code the select\_font method to  
load the font. PDF::Writer::FONT\_PATH displays as c:\windows/fonts.  
Attempted coding statements have been:

pdf.select\_font(“w128m.ttf”)  
pdf.select\_font(“WASP 128 M”)  
pdf.select\_font(“WASP 128 M(TrueType)”)

Your assistance is appreciated.  
dvn

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 3, 2007, 6:56am UTC](https://www.ruby-forum.com/t/pdf-writer-font-not-found/84327/2 "2007-02-03T06:56:01Z")

</div>

On 2/2/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I cannot figure out how to get a font loaded. I have in c:\windows/  
> fonts a font file named w128m.ttf. It displays as “WASP 128  
> M(TrueType)”. I haven’t been able to code the select\_font method to  
> load the font. PDF::Writer::FONT\_PATH displays as c:\windows/fonts.  
> Attempted coding statements have been:
> 
> pdf.select\_font(“w128m.ttf”)  
> pdf.select\_font(“WASP 128 M”)  
> pdf.select\_font(“WASP 128 M(TrueType)”)

There are issues with TrueType fonts at this point. Even if those  
issues did not exist, PDF::Writer cannot yet obtain the font metrics  
from the font file itself and must have an Adobe Font Metrics file  
generated for it (usually associated with Type1 fonts).

-austin
