Next: , Up: Fonts and Extended Text Styles


19.1 Extended Text Styles

McCLIM extends the legal values for the family and face arguments to make-text-style to include strings (in additional to the portable keyword symbols), as permitted by the CLIM spec, section 11.1.

Each backend defines its own specific syntax for these family and face names.

The CLX backend maps the text style family to the X font's foundry and family values, separated by a dash. The face is mapped to weight and slant in the same way. For example, the following form creates a text style for -misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*:

     (make-text-style "misc-fixed" "bold-r" 18)

In the GTK backend, the text style family and face are used directly as the Pango font family and face name. Please refer to Pango documentation for details on the syntax of face names. Example:

     (make-text-style "Bitstream Vera Sans" "Bold Oblique" 54)