Returns the best font for a CAPI pane.
graphics-ports
find-best-font pane fdesc => font
pane⇩ |
A graphic port. |
fdesc⇩ |
A font description. |
font |
A font. |
The function find-best-font
returns the best font for pane which matches fdesc. When there alternative fonts available the choice of best font is operating system dependent.
When fdesc contains the attribute :stock
with value :system-font
or :system-fixed-font
, the lookup will always find a stock font.
By default find-best-font
looks only for Truetype fonts in LispWorks 6.1 and later.
With the default drawing-mode :quality
only Truetype fonts are supported. Non-Truetype fonts are supported only when using drawing-mode :compatible
.
To get the LispWorks 6.0 behavior where non-Truetype fonts are also found, pass :type :wild
to make-font-description.
(example-edit-file "capi/graphics/catherine-wheel")
find-matching-fonts
make-font-description
prompt-for-font
13 Drawing - Graphics Ports
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:02