|
|
|
@ -753,24 +753,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Does font name match rule family? */ |
|
|
|
|
if ( strcmp( detected_font_name, rule_font_name ) == 0 ) |
|
|
|
|
if ( ft_strcmp( detected_font_name, rule_font_name ) == 0 ) |
|
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
/* Is font name a wildcard ""? */ |
|
|
|
|
if ( strcmp( rule_font_name, "" ) == 0 ) |
|
|
|
|
if ( ft_strcmp( rule_font_name, "" ) == 0 ) |
|
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
/* Is font name contained in a class list? */ |
|
|
|
|
for ( i = 0; i < FAMILY_CLASS_RULES_SIZE; i++ ) |
|
|
|
|
{ |
|
|
|
|
if ( strcmp( FAMILY_CLASS_Rules[i].name, rule_font_name ) == 0 ) |
|
|
|
|
if ( ft_strcmp( FAMILY_CLASS_Rules[i].name, rule_font_name ) == 0 ) |
|
|
|
|
{ |
|
|
|
|
for ( j = 0; j < SPH_MAX_CLASS_MEMBERS; j++ ) |
|
|
|
|
{ |
|
|
|
|
if ( strcmp( FAMILY_CLASS_Rules[i].member[j], "" ) == 0 ) |
|
|
|
|
if ( ft_strcmp( FAMILY_CLASS_Rules[i].member[j], "" ) == 0 ) |
|
|
|
|
continue; |
|
|
|
|
if ( strcmp( FAMILY_CLASS_Rules[i].member[j], |
|
|
|
|
detected_font_name ) == 0 ) |
|
|
|
|
if ( ft_strcmp( FAMILY_CLASS_Rules[i].member[j], |
|
|
|
|
detected_font_name ) == 0 ) |
|
|
|
|
return TRUE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -788,24 +788,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Does font style match rule style? */ |
|
|
|
|
if ( strcmp( detected_font_style, rule_font_style ) == 0 ) |
|
|
|
|
if ( ft_strcmp( detected_font_style, rule_font_style ) == 0 ) |
|
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
/* Is font style a wildcard ""? */ |
|
|
|
|
if ( strcmp( rule_font_style, "" ) == 0 ) |
|
|
|
|
if ( ft_strcmp( rule_font_style, "" ) == 0 ) |
|
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
/* Is font style contained in a class list? */ |
|
|
|
|
for ( i = 0; i < STYLE_CLASS_RULES_SIZE; i++ ) |
|
|
|
|
{ |
|
|
|
|
if ( strcmp( STYLE_CLASS_Rules[i].name, rule_font_style ) == 0 ) |
|
|
|
|
if ( ft_strcmp( STYLE_CLASS_Rules[i].name, rule_font_style ) == 0 ) |
|
|
|
|
{ |
|
|
|
|
for ( j = 0; j < SPH_MAX_CLASS_MEMBERS; j++ ) |
|
|
|
|
{ |
|
|
|
|
if ( strcmp( STYLE_CLASS_Rules[i].member[j], "" ) == 0 ) |
|
|
|
|
if ( ft_strcmp( STYLE_CLASS_Rules[i].member[j], "" ) == 0 ) |
|
|
|
|
continue; |
|
|
|
|
if ( strcmp( STYLE_CLASS_Rules[i].member[j], |
|
|
|
|
detected_font_style ) == 0 ) |
|
|
|
|
if ( ft_strcmp( STYLE_CLASS_Rules[i].member[j], |
|
|
|
|
detected_font_style ) == 0 ) |
|
|
|
|
return TRUE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|