Jonathan Harris <jhar(a)tardis.ed.ac.uk> writes:
I've made the attached changes against b44 to almost fix
customising
fonts in mswindows. I'm stuck on the font family 'though and could use
some help on whether and how this works under X:
custom-face-attributes in us-face.el contains the following entry for
the font family name:
(:family (editable-field :format "Font Family: %v"
:help-echo "\
Name of font family to use (e.g. times).")
custom-set-face-font-family custom-face-font-family)
custom-face-font-family returns a list because font-family returns a
list. When the above entry is processed the "%v" in the format string
appears to cause widget-field-match to be called on the family name
returned by custom-face-font-family, but widget-field-match expects a
string not a list.
How can this work under X ?
The font-family stuff is a list because you can specify multiple families
of fonts, in order of preference, in case one of the families doesn't have
the attributes you want (ie: if there is no bold courier, it could fall
back to trying bold arial). Do _not_ change this behaviour.
font.el is part of Emacs/W3. :) The CSS code relies on this. And it
should be part of our new font model.
-Bill P.