[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Han-Wen Nienhuys
Subject: urg.
Date: Sat, 19 Feb 2005 03:39:53 +0100

I've been working on direct PDF output. The basis (objects, byte
offsets) is easy enough, but 

 * Type1 fonts have to embedded binarily.

 * Type1 fonts have to be interpreted to extract glyph widths (with freetype?)

 * The Type1 has to be read, to determine byte offsets of
   different sections

 * There is no glyphshow operator in PDF (damn). I believe that
Unicode is well supported for text, but for emmentaler, we have 
to something with CMaps, CIDs and other stuff I don't understand.

I wonder whether this is a smart choice to try out; direct PDF seems
like more work than I anticipated.

I see a couple of other options:

* Use libgnomeprint.

        byrd:~/usr/src/lilypond$ ldd /usr/lib/ => /usr/lib/ (0x009a8000) => /usr/lib/ (0x00a19000) => /usr/lib/ (0x009e1000) => /usr/lib/ (0x00872000) => /usr/lib/ (0x0086d000) => /lib/ (0x005cc000) => /usr/lib/ (0x007f0000) => /usr/lib/ (0x0034e000) => /lib/tls/ (0x006bd000) => /lib/tls/ (0x005a7000) => /usr/lib/ (0x0075e000) => /usr/lib/ (0x006f5000) => /usr/lib/ (0x0069b000) => /lib/tls/ (0x0047b000)
        /lib/ (0x00462000) => /usr/lib/ (0x00786000)

this increases dependencies of lily, and I wonder how much control we
will have over the output.

* We can make FontConfig ignore TTF fonts. We don't call the next
release 3.0, but 2.6.

Viable, but not so attractive.

* We can convert every TTF with fontforge to Type42 or CFF and include
that in the PS. For performance reasons, we can cache the result.

Problem: this adds rapidly changing fontforge as a running dependency.
This is not viable, IMO.

* We can hack fontconfig support into Ghostscript 8.15, pray that all
  distros start shipping it and have GS load the fonts.

  A nice solution, but a logistic nightmare? I suspect that this might
  be the easiest route technically, though.

What do you guys think? In particular, Font Guru Werner - should I
persist trying to get direct PDF up and running, or pursue the


 Han-Wen Nienhuys   |   address@hidden   | 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]