diff options
| author | Po Lu | 2023-09-08 10:37:18 +0800 |
|---|---|---|
| committer | Po Lu | 2023-09-08 10:37:18 +0800 |
| commit | c933f5081fdaadbe7192d2cc1f7e705f0b0fb842 (patch) | |
| tree | 4e1f8d214a762819a6203b2ada2be649fc86fd9d /src/androidfont.c | |
| parent | b1bcd396ede2323e5501d6ec78a5246a6e1dae72 (diff) | |
| download | emacs-c933f5081fdaadbe7192d2cc1f7e705f0b0fb842.tar.gz emacs-c933f5081fdaadbe7192d2cc1f7e705f0b0fb842.zip | |
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/androidfont.c')
| -rw-r--r-- | src/androidfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/androidfont.c b/src/androidfont.c index db2f94008f2..1a26741925f 100644 --- a/src/androidfont.c +++ b/src/androidfont.c | |||
| @@ -776,7 +776,7 @@ androidfont_open_font (struct frame *f, Lisp_Object font_entity, | |||
| 776 | #undef DO_CARDINAL_FIELD | 776 | #undef DO_CARDINAL_FIELD |
| 777 | 777 | ||
| 778 | /* This should eventually become unnecessary. */ | 778 | /* This should eventually become unnecessary. */ |
| 779 | font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil); | 779 | font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil, Qt); |
| 780 | 780 | ||
| 781 | return font_object; | 781 | return font_object; |
| 782 | } | 782 | } |