mirror of
				https://github.com/SwallowOS/xorg_lib_libxfont
				synced 2025-11-04 05:45:47 +08:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user