Previous: Cursor Parameters, Up: Window Frame Parameters
These frame parameters control the use of fonts and colors.
font-backendx (the X core font
driver) and xft (the Xft font driver). On MS-Windows, there are
currently two available font backends: gdi and
uniscribe (see Windows Fonts). On other systems, there is only one available font backend,
so it does not make sense to modify this frame parameter.
background-modedark or light, according
to whether the background color is a light one or a dark one.
tty-color-mode(tty-color-mode . 8) specifies use of the
ANSI escape sequences for 8 standard text colors. A value of −1 turns
off color support.
If the parameter's value is a symbol, it specifies a number through
the value of tty-color-mode-alist, and the associated number is
used instead.
screen-gammaUsual PC monitors have a screen gamma of 2.2, so color values in
Emacs, and in X windows generally, are calibrated to display properly
on a monitor with that gamma value. If you specify 2.2 for
screen-gamma, that means no correction is needed. Other values
request correction, designed to make the corrected colors appear on
your screen the way they would have appeared without correction on an
ordinary monitor with a gamma value of 2.2.
If your monitor displays colors too light, you should specify a
screen-gamma value smaller than 2.2. This requests correction
that makes colors darker. A screen gamma value of 1.5 may give good
results for LCD color displays.
alphanil value, which tells
Emacs not to set the frame opacity (leaving it to the window manager).
To prevent the frame from disappearing completely from view, the
variable frame-alpha-lower-limit defines a lower opacity limit.
If the value of the frame parameter is less than the value of this
variable, Emacs uses the latter. By default,
frame-alpha-lower-limit is 20.
The alpha frame parameter can also be a cons cell
(active . inactive), where active is the
opacity of the frame when it is selected, and inactive is the
opacity when it is not selected.
Some window systems do not support the alpha parameter for child
frames (see Child Frames).
The following frame parameters are semi-obsolete in that they are automatically equivalent to particular face attributes of particular faces (see Standard Faces):
fontfont
attribute of the default face.
foreground-color:foreground attribute of the default face.
background-color:background attribute of the default face.
mouse-color:background
attribute of the mouse face.
cursor-color:background attribute of the cursor face.
border-color:background attribute of the border face.
scroll-bar-foregroundnil, the color for the foreground of scroll bars. It is
equivalent to the :foreground attribute of the
scroll-bar face.
scroll-bar-backgroundnil, the color for the background of scroll bars. It is
equivalent to the :background attribute of the
scroll-bar face.