mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-20 19:42:53 -08:00
Improve font specs generated by the Haiku font dialog
* src/haikufont.c (Fx_select_font): Use `nil' instead of `unspecified' to be consistent with other font dialogs.
This commit is contained in:
parent
e41b7cc935
commit
79bbbb1fcf
1 changed files with 3 additions and 6 deletions
|
|
@ -1231,14 +1231,11 @@ in the font selection dialog. */)
|
|||
|
||||
lfamily = build_string_from_utf8 (family);
|
||||
lweight = (pattern.specified & FSPEC_WEIGHT
|
||||
? haikufont_weight_to_lisp (pattern.weight)
|
||||
: Qunspecified);
|
||||
? haikufont_weight_to_lisp (pattern.weight) : Qnil);
|
||||
lslant = (pattern.specified & FSPEC_SLANT
|
||||
? haikufont_slant_to_lisp (pattern.slant)
|
||||
: Qunspecified);
|
||||
? haikufont_slant_to_lisp (pattern.slant) : Qnil);
|
||||
lwidth = (pattern.specified & FSPEC_WIDTH
|
||||
? haikufont_width_to_lisp (pattern.width)
|
||||
: Qunspecified);
|
||||
? haikufont_width_to_lisp (pattern.width) : Qnil);
|
||||
ladstyle = (pattern.specified & FSPEC_STYLE
|
||||
? intern (pattern.style) : Qnil);
|
||||
lsize = (size >= 0 ? make_fixnum (size) : Qnil);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue