[mcclim-devel] Re: international text-style support

Christophe Rhodes csr21 at cam.ac.uk
Tue Aug 2 08:49:41 UTC 2005


Christophe Rhodes <csr21 at cam.ac.uk> writes:

> I'm away from my workstation, but tomorrow I'll send patches showing
> what we're currently doing.

As promised:

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: medium.diff
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20050802/e39baa36/attachment.ksh>
-------------- next part --------------

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).

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: freetype-fonts.diff
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20050802/e39baa36/attachment-0001.ksh>
-------------- next part --------------

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


More information about the mcclim-devel mailing list