Next: Font Selection, Previous: Attribute Functions, Up: Faces
Here are the ways to specify which faces to use for display of text:
default face is used as the ultimate
default for all text. (In Emacs 19 and 20, the default
face is used only when no other face is specified.)
mode-line or
mode-line-inactive, or header-line, is merged in just
before default.
face property; if
so, the faces and face attributes specified there apply. See Special Properties.
If the character has a mouse-face property, that is used instead
of the face property when the mouse is “near enough” to the
character.
face and mouse-face
properties too; they apply to all the text covered by the overlay.
region (see Standard Faces↗).
If these various sources together specify more than one face for a
particular character, Emacs merges the attributes of the various faces
specified. For each attribute, Emacs tries first the face of any
special glyph; then the face for region highlighting, if appropriate;
then the faces specified by overlays, followed by those specified by
text properties, then the mode-line or
mode-line-inactive or header-line face (if in a mode
line or a header line), and last the default face.
When multiple overlays cover one character, an overlay with higher priority overrides those with lower priority. See Overlays.
