Lisp HUG Maillist Archive

editor-pane fonts

Hi,

Quick question: Does anybody know how to change the default font when 
creating an editor-pane? The obvious :font slot seems to have no 
effect. I'm mainly interested in altering the font size.  The example 
code below seems to have no effect on LWM.

(capi:contain (make-instance 'capi:editor-pane
                              :font (gp:make-font-description :size 30)))

==> editor pane with 8 pt font

Thanks,
Chris



Re: editor-pane fonts

Hi Chris

> Quick question: Does anybody know how to change the default font when 
> creating an editor-pane? The obvious :font slot seems to have no 
> effect. I'm mainly interested in altering the font size.  The example 
> code below seems to have no effect on LWM.
> 
> (capi:contain (make-instance 'capi:editor-pane
>                               :font (gp:make-font-description :size 30)))

I ran into exactly this question yesterday!

This article in the knowledge base describes how to set the font prior
to creating the editor:

http://www1.xanalys.com/support/lisp/kbase.nsf/0/4586f3e0279aaf218525670e0070e1dd?OpenDocument

How to change it after the event is still a mystery however... Anyone
know how this is done?

Dominic


Re: editor-pane fonts

Unable to parse email body. Email id is 2997

Re: editor-pane fonts

> You want a font, not a font-description.

Ahh.

But, according to the 4.3.7 capi reference manual entry for simple-pane,
a font description should work as well:

Initargs
:font    The default font for the pane.
         font should be font, a font description, or nil.

Dominic


Re: editor-pane fonts

Unable to parse email body. Email id is 3000

Re: editor-pane fonts

Unable to parse email body. Email id is 3001

Updated at: 2020-12-10 08:54 UTC