mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
fix 'italic' detection
Don't check for italic, check for slant greater than roman. That way, we catch oblique (which is more slanted than 'italic') too.
This commit is contained in:
parent
8df5bb1064
commit
5737e249f5
1 changed files with 1 additions and 2 deletions
|
@ -496,7 +496,6 @@ static NSArray *faFromFc(FcPattern *pat)
|
|||
@end
|
||||
|
||||
|
||||
|
||||
@implementation FontconfigPatternGenerator
|
||||
|
||||
- (void)addName: (NSString*)name
|
||||
|
@ -880,7 +879,7 @@ static NSArray *faFromFc(FcPattern *pat)
|
|||
int value;
|
||||
if (FcResultMatch == FcPatternGetInteger(pat, FC_SLANT, 0, &value))
|
||||
{
|
||||
if (value == FC_SLANT_ITALIC)
|
||||
if (value > FC_SLANT_ROMAN)
|
||||
{
|
||||
symTraits |= NSFontItalicTrait;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue