aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2024-09-20 22:29:53 +0800
committerPo Lu2024-09-20 22:30:07 +0800
commit7ef805d6a47ef12a40c18d1e449b326f787aa4ea (patch)
treee8da3208e8e9a47140828b2d80eadc30b416d27d /src
parent4b9a8fd607423726aea390a5fe25fd2307c937b6 (diff)
downloademacs-7ef805d6a47ef12a40c18d1e449b326f787aa4ea.tar.gz
emacs-7ef805d6a47ef12a40c18d1e449b326f787aa4ea.zip
Disable fontset-related workaround on non-Android systems
* src/fontset.c (fontset_find_font) [!HAVE_ANDROID]: Don't refuse to cache font objects whose registries do not agree with the font specs. (bug#73363) Do not merge to master.
Diffstat (limited to 'src')
-rw-r--r--src/fontset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 16d14669c89..c332f2a5838 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -668,6 +668,7 @@ fontset_find_font (Lisp_Object fontset, int c, struct face *face,
668 font_object = font_open_for_lface (f, font_entity, face->lface, 668 font_object = font_open_for_lface (f, font_entity, face->lface,
669 FONT_DEF_SPEC (font_def)); 669 FONT_DEF_SPEC (font_def));
670 670
671#ifdef HAVE_ANDROID
671 /* If the font registry is not the same as explicitly 672 /* If the font registry is not the same as explicitly
672 specified in the font spec, do not cache the font. 673 specified in the font spec, do not cache the font.
673 TrueType fonts have contrived character map selection 674 TrueType fonts have contrived character map selection
@@ -692,10 +693,13 @@ fontset_find_font (Lisp_Object fontset, int c, struct face *face,
692 Qiso10646_1))) 693 Qiso10646_1)))
693 goto strangeness; 694 goto strangeness;
694 } 695 }
696#endif /* HAVE_ANDROID */
695 697
696 if (NILP (font_object)) 698 if (NILP (font_object))
697 { 699 {
700#ifdef HAVE_ANDROID
698 strangeness: 701 strangeness:
702#endif /* HAVE_ANDROID */
699 /* Something strange happened, perhaps because of a 703 /* Something strange happened, perhaps because of a
700 Font-backend problem. To avoid crashing, record 704 Font-backend problem. To avoid crashing, record
701 that this spec is unusable. It may be better to find 705 that this spec is unusable. It may be better to find