| Allegro CL version 9.0 This page is new in 9.0. |
Arguments: text-edit-pane
This function has an effect only on the Windows platform.
Returns true or nil
to indicate whether
text-edit-pane (a text-edit-pane
) will automatically switch to a
different font when needed in order to properly display particular
characters that are inserted into it. The value may be set when
creating the window by passing
an automatic-font-changing initarg to
make-window, or any time later
by calling (setf
automatic-font-changing). The default value
is nil
.
This feature is typically used when the text-edit-pane
might contain multibyte
characters that are not available in some fonts. It can also be
useful for Asian characters even when the text-edit-pane's official
font contains the characters if it does not provide sufficient
horizontal space to display wider characters readably.
If this features changes parts of the text to different fonts, CG does not actually know about that, and cg:font will still return the single official font that was assigned to it by the application. On the other hand, get-character-format will return the name of the font face that is actually in use at the current text cursor position.
This function is a direct hook into
the IMF_AUTOFONT
option of Microsoft's RichEdit
control. Font changes that this option makes may be rather
unpredictable, and so setting the font property of
a text-edit-pane
to a font
that you know is adequate may be preferrable to using this option.
See also dual-fonts-for-languages.
Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page is new in the 9.0 release.
Created 2019.8.20.
| Allegro CL version 9.0 This page is new in 9.0. |