Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
17d0f03b
Commit
17d0f03b
authored
Jul 13, 2005
by
YAMAMOTO Mitsuharu
Browse files
(try_font_list) [MAC_OS]: Try font family name
beginning with that for ASCII.
parent
95dfb192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
src/xfaces.c
src/xfaces.c
+15
-8
No files found.
src/xfaces.c
View file @
17d0f03b
...
...
@@ -6745,14 +6745,21 @@ try_font_list (f, attrs, family, registry, fonts, prefer_face_family)
nfonts = try_alternative_families (f, try_family, registry, fonts);
#ifdef MAC_OS
/* When realizing the default face and a font spec does not matched
exactly, Emacs looks for ones with the same registry as the
default font. On the Mac, this is mac-roman, which does not work
if the family is -etl-fixed, e.g. The following widens the
choices and fixes that problem. */
if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry)
&& xstricmp (SDATA (registry), "mac-roman") == 0)
nfonts = try_alternative_families (f, try_family, Qnil, fonts);
if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry))
if (xstricmp (SDATA (registry), "mac-roman") == 0)
/* When realizing the default face and a font spec does not
matched exactly, Emacs looks for ones with the same registry
as the default font. On the Mac, this is mac-roman, which
does not work if the family is -etl-fixed, e.g. The
following widens the choices and fixes that problem. */
nfonts = try_alternative_families (f, try_family, Qnil, fonts);
else if (SBYTES (try_family) > 0
&& SREF (try_family, SBYTES (try_family) - 1) != '*')
/* Some Central European/Cyrillic font family names have the
Roman counterpart name as their prefix. */
nfonts = try_alternative_families (f, concat2 (try_family,
build_string ("*")),
registry, fonts);
#endif
if (EQ (try_family, family))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment