Go to the first, previous, next, last section, table of contents.
Each window may use a different font; this font will be used for rendering
all text in the window. When windows are created they inherit their font
from the current window at the time.
Currently Jade only allows the use of fixed-width fonts; proportional
fonts won't work properly.
- Command: set-font font-name &optional window
-
This function sets the font used in the window window (or the current
window) to the font named by the string font-name.
The format of the string font-name depends on the underlying
windowing system:
- X11
-
Simply use the standard name of the font, asterisk characters work
like usual (i.e. match zero or more characters).
- Amiga
-
This is different to the normal Amiga conventions, use the name of the
font followed by a dash and then the size of the font. For example to
get an 8-point topaz font, use `topaz.font-8'.
When this function is called interactively it will prompt for font-name.
- Function: font-name &optional window
-
Returns the name of the font being used in the specified window.
Note that on an Amiga this will only return the name, and not the size
of the font. For example, if set-font has been used with an
argument of "topaz.font-8", a call to font-name would
produce "topaz.font".
- Function: font-x-size &optional window
-
Returns the width (in pixels) of a character in the specified window's
font.
(font-x-size)
=> 7
- Function: font-y-size &optional window
-
Returns the height in pixels of each character in the window's font.
(font-y-size)
=> 13
Go to the first, previous, next, last section, table of contents.