The integrated cross-platform development tool for ANSI Common Lisp LispWorks logo

Lisp Knowledgebase



Title: Changing the font of your LW Editor window

ID: 10024


Product: All
Version: All
OS: all platforms

Description: How do I change the font of my Editor window?


The LispWorks editor and some other tools display text in a CAPI:EDITOR-PANE. This and its subclasses must use a fixed width font to display text correctly.


On Windows, instances of CAPI:EDITOR-PANE and its subclasses use the font via the font alias :EDITOR-PANE-DEFAULT-FONT. You can change this default setting via

(gp:define-font-alias :editor-pane-default-font
   
(gp:make-font-description :family "courier new" :size 12))

before creating the editor window.

You may need to uncheck the Reuse all tools box (choose Tools -> Options from the Podium window) for this to work properly.

Users of Japanese should specify the charset, eg.

(gp:define-font-alias :editor-pane-default-font
 
(gp:make-font-description :family "FixedSys" :charset :shiftjis))


NB The above examples assume LispWorks 4.1.19+.


On Motif, the X resources mechanism is used.

For each CAPI class EDITOR-PANE and its subclasses COLLECTOR-PANE, ECHO-PODIUM-PANE, MAIL-PANE, LISTENER-PANE and SHELL-PANE, if the corresponding fontList resource is specified and is fixed width, this is used for instances of that class. Otherwise, they use a font via the font alias :EDITOR-PANE-DEFAULT-FONT. You can change this default as above.

See the app-defaults/Lispworks file for examples of how to specify the fontList resources.

You could also specify fontList resources via the :fallback-resources argument to ENV:START-ENVIRONMENT.

See Also:
Workaround:
Patch:

Hardware:N/A
Summary:
Bug#:
Patch Enhancement#:
Reported:#6059

Top | Back