From 78711dd6f5bc23d460c0eeca75d1183b90a75759 Mon Sep 17 00:00:00 2001 From: Dave Belanger Date: Sat, 4 Oct 2003 04:15:47 +0000 Subject: [PATCH] Improved generation of font signature from freetype face charmaps. --- dlls/gdi/freetype.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index 11a0c5217c8..059c542fab8 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -355,14 +355,14 @@ static BOOL AddFontFileToList(char *file, char *fake_family) (*insertface)->fs.fsUsb[2], (*insertface)->fs.fsUsb[3]); if((*insertface)->fs.fsCsb[0] == 0) { /* let's see if we can find any interesting cmaps */ - for(i = 0; i < ft_face->num_charmaps && - !(*insertface)->fs.fsCsb[0]; i++) { + for(i = 0; i < ft_face->num_charmaps; i++) { switch(ft_face->charmaps[i]->encoding) { case ft_encoding_unicode: - (*insertface)->fs.fsCsb[0] = 1; + case ft_encoding_apple_roman: + (*insertface)->fs.fsCsb[0] |= 1; break; case ft_encoding_symbol: - (*insertface)->fs.fsCsb[0] = 1L << 31; + (*insertface)->fs.fsCsb[0] |= 1L << 31; break; default: break;