Improved generation of font signature from freetype face charmaps.

This commit is contained in:
Dave Belanger 2003-10-04 04:15:47 +00:00 committed by Alexandre Julliard
parent 841f898663
commit 78711dd6f5
1 changed files with 4 additions and 4 deletions

View File

@ -355,14 +355,14 @@ static BOOL AddFontFileToList(char *file, char *fake_family)
(*insertface)->fs.fsUsb[2], (*insertface)->fs.fsUsb[3]); (*insertface)->fs.fsUsb[2], (*insertface)->fs.fsUsb[3]);
if((*insertface)->fs.fsCsb[0] == 0) { /* let's see if we can find any interesting cmaps */ if((*insertface)->fs.fsCsb[0] == 0) { /* let's see if we can find any interesting cmaps */
for(i = 0; i < ft_face->num_charmaps && for(i = 0; i < ft_face->num_charmaps; i++) {
!(*insertface)->fs.fsCsb[0]; i++) {
switch(ft_face->charmaps[i]->encoding) { switch(ft_face->charmaps[i]->encoding) {
case ft_encoding_unicode: case ft_encoding_unicode:
(*insertface)->fs.fsCsb[0] = 1; case ft_encoding_apple_roman:
(*insertface)->fs.fsCsb[0] |= 1;
break; break;
case ft_encoding_symbol: case ft_encoding_symbol:
(*insertface)->fs.fsCsb[0] = 1L << 31; (*insertface)->fs.fsCsb[0] |= 1L << 31;
break; break;
default: default:
break; break;