summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-06-08 14:28:09 -0400
committerAdam Jackson <ajax@redhat.com>2016-06-10 09:49:54 -0400
commit33a98f2b5343da927f29191348e992f505544873 (patch)
tree794ae58badaf4b856bac12787719a4e6373c1a06
parent79084468fb844e386a72d938c67be0728959a2bd (diff)
freetype: Fix a logic error in computing face name
gcc6 chirps an indentation warning here, but really this is bad code. Effectively this would ignore en_US or en_UK names for the font, despite that those are the English names the font is most likely to have. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/FreeType/fttools.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/FreeType/fttools.c b/src/FreeType/fttools.c
index 7c0bd9b..0329fae 100644
--- a/src/FreeType/fttools.c
+++ b/src/FreeType/fttools.c
@@ -100,7 +100,6 @@ FTGetName(FT_Face face, int nid, int pid, int eid, FT_SfntName *name_return)
case TT_PLATFORM_MICROSOFT:
if(name.language_id != TT_MS_LANGID_ENGLISH_UNITED_STATES &&
name.language_id != TT_MS_LANGID_ENGLISH_UNITED_KINGDOM)
- break;
continue;
break;
default: