summaryrefslogtreecommitdiff
path: root/src/w32font.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-09-08 10:37:18 +0800
committerPo Lu <luangruo@yahoo.com>2023-09-08 10:37:18 +0800
commitc933f5081fdaadbe7192d2cc1f7e705f0b0fb842 (patch)
tree4e1f8d214a762819a6203b2ada2be649fc86fd9d /src/w32font.c
parentb1bcd396ede2323e5501d6ec78a5246a6e1dae72 (diff)
downloademacs-c933f5081fdaadbe7192d2cc1f7e705f0b0fb842.tar.gz
Permit XLFD names to exceed 255 characters
* doc/lispref/display.texi (Low-Level Font) <font-xlfd-name>: Document new argument `long-xlfds'. * etc/NEWS: Mention removal of XLFD length restrictions. * src/font.c (font_build_object): Dynamically allocate XLFD, permitting them to surpass 255 characters in length. (font_parse_xlfd_1): Cease rejecting XLFDs more than 255 characters in length. (font_dynamic_unparse_xlfd): New function. Like font_unparse_xlfd, but allocate the XLFD dynamically. (font_delete_unmatched): Dynamically allocate XLFD if necessary. (Ffont_xlfd_name): New arg LONG_XLFDs. If t, return a dynamically allocated XLFD. All callers changed. * src/font.h: Update prototypes. * src/fontset.c (Fnew_fontset): Dynamically allocate XLFD when establishing fontset name.
Diffstat (limited to 'src/w32font.c')
-rw-r--r--src/w32font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32font.c b/src/w32font.c
index 0371b24e1d1..45b6c499745 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -1072,7 +1072,7 @@ w32font_open_internal (struct frame *f, Lisp_Object font_entity,
name to be usable in x-list-fonts. Eventually we expect to change
x-list-fonts and other places that use fonts so that this can be
an fcname or similar. */
- font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil);
+ font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil, Qt);
return 1;
}