]> git.eshelyaron.com Git - emacs.git/commit
Permit XLFD names to exceed 255 characters
authorPo Lu <luangruo@yahoo.com>
Fri, 8 Sep 2023 02:37:18 +0000 (10:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 8 Sep 2023 02:37:18 +0000 (10:37 +0800)
commitc933f5081fdaadbe7192d2cc1f7e705f0b0fb842
tree4e1f8d214a762819a6203b2ada2be649fc86fd9d
parentb1bcd396ede2323e5501d6ec78a5246a6e1dae72
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.
doc/lispref/display.texi
etc/NEWS
src/androidfont.c
src/font.c
src/font.h
src/fontset.c
src/haikufont.c
src/sfntfont.c
src/w32font.c
src/xfaces.c