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
c285743c
Commit
c285743c
authored
Nov 24, 2008
by
Jason Rumney
Browse files
(check_face_name): Use xstrcasecmp. Avoid compiler warning.
parent
d60b1ba1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
src/ChangeLog
src/ChangeLog
+5
-0
src/w32font.c
src/w32font.c
+7
-6
No files found.
src/ChangeLog
View file @
c285743c
2008-11-24 Jason Rumney <jasonr@gnu.org>
* w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
warning.
2008-11-23 Jason Rumney <jasonr@gnu.org>
* w32uniscribe.c (uniscribe_encode_char): Ensure context is
...
...
src/w32font.c
View file @
c285743c
...
...
@@ -1316,17 +1316,18 @@ check_face_name (font, full_name)
to avoid non-truetype fonts, and ends up mixing the Type-1 Helvetica
with Arial's characteristics, since that attempt to use Truetype works
some places, but not others. */
if (!str
i
cmp (font->lfFaceName, "helvetica"))
if (!
x
str
case
cmp (font->lfFaceName, "helvetica"))
{
strncpy (full_iname, full_name, LF_FULLFACESIZE);
full_iname[LF_FULLFACESIZE] = 0;
_strlwr (full_iname);
return strstr ("helvetica", full_iname);
return strstr ("helvetica", full_iname)
!= NULL
;
}
else if (!stricmp (font->lfFaceName, "times"))
/* Since Times is mapped to Times New Roman, a substring
match is not sufficient to filter out the bogus match. */
return stricmp (full_name, "times");
/* Since Times is mapped to Times New Roman, a substring
match is not sufficient to filter out the bogus match. */
else if (!xstrcasecmp (font->lfFaceName, "times"))
return xstrcasecmp (full_name, "times") == 0;
return 1;
}
...
...
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