[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 79bbbb1fcf: Improve font specs generated by the Haiku font dialog
From: |
Po Lu |
Subject: |
master 79bbbb1fcf: Improve font specs generated by the Haiku font dialog |
Date: |
Fri, 6 May 2022 08:07:01 -0400 (EDT) |
branch: master
commit 79bbbb1fcf565d37f20353181df99f8b55cd2c4f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/haikufont.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/haikufont.c b/src/haikufont.c
index f8cf45284d..e0db086aa0 100644
--- a/src/haikufont.c
+++ b/src/haikufont.c
@@ -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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 79bbbb1fcf: Improve font specs generated by the Haiku font dialog,
Po Lu <=