Christophe Rhodes csr21@cam.ac.uk writes:
I'm away from my workstation, but tomorrow I'll send patches showing what we're currently doing.
As promised:
This patch implements a bit more of device-font-text-style, while ignoring the spec's requirement that they behave, apart from merging, like normal text styles -- that is, that they have a family, size and face. (The requirements for family and face are pretty nonsensical, but it is clear that a device font needs to acquire size information at some point).
This patch allows use of device-font-text-style in the experimental freetype backend; with it, you can do
(with-text-style (medium (make-device-font-text-style (port *application-frame*) "/Fonts/tabcode.ttf")) ...)
and have that font active for draw-text for the dynamic extent.
If anyone has any ideas about how to make this better or more generalizeable, that would be great -- particularly since we're also going to want Postscript support for this...
Cheers,
Christophe