Re: Graphics Context Default Font

[email protected] Sun, 20 May 2007 19:52:00 +0100 (BST)
Newsgroups gmane.lisp.clx.devel
Message-ID <[email protected]>
> I'm using a darcs pull of clx with sbcl 1.0.3 and Xorg 6.9 on FreeBSD
> 6.1. I've been working through the examples described as Simple CLX:
> 
> http://www.cawtech.demon.co.uk/clx/simple/examples.html
> 
> I've successfully run every example up to 'hello-world'. Evaluation of
> hello-world hangs because it relies on a default value for the font in
> the graphics context. If I specify the font to use, it evaluates
> correctly.

In my tutorial I wrote:

> The graphics context contains a field for the font
> information, and is supposed to default to something
> useable.

My recollection is that I was worried about chosing a font
that would be present on everybody's system and was
delighted to find in the documentation that the default font,
although unspecifed, was supposed to be something usable.

I cannot track down where in the CLX manual it actually says
this. I do hope it is officially required, as it make it
easy to write a portable program that can display an
appropriate font-not-found message.

I wrote the tutorial on FreeBSD, and have just retested it
successfully on FreeBSD 5.4-RELEASE, CMU Common Lisp 19a,
* (require :clx)
; Loading #p"/usr/local/lib/cmucl/lib/subsystems/clx-library.x86f".

That is the CLX that comes in the extras package that
accompanies CMUCL. The darcs port for 5.4 was broken and I
just gave up.

Alan Crowe

_______________________________________________
Portable-clx mailing list
[email protected]
http://lists.metacircles.com/cgi-bin/mailman/listinfo/portable-clx
See http://www.cliki.net/clx for darcs URL(s)