summaryrefslogtreecommitdiff
path: root/vcl/source/font/PhysicalFontFace.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/font/PhysicalFontFace.cxx')
-rw-r--r--vcl/source/font/PhysicalFontFace.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/font/PhysicalFontFace.cxx b/vcl/source/font/PhysicalFontFace.cxx
index 9540604f137f..1e50b0cafece 100644
--- a/vcl/source/font/PhysicalFontFace.cxx
+++ b/vcl/source/font/PhysicalFontFace.cxx
@@ -50,9 +50,9 @@ sal_Int32 PhysicalFontFace::CompareIgnoreSize( const PhysicalFontFace& rOther )
else if( GetWeight() > rOther.GetWeight() )
return 1;
- if( GetSlantType() < rOther.GetSlantType() )
+ if( GetItalic() < rOther.GetItalic() )
return -1;
- else if( GetSlantType() > rOther.GetSlantType() )
+ else if( GetItalic() > rOther.GetItalic() )
return 1;
sal_Int32 nRet = GetFamilyName().compareTo( rOther.GetFamilyName() );
@@ -143,18 +143,18 @@ bool PhysicalFontFace::IsBetterMatch( const FontSelectPattern& rFSD, FontMatchSt
}
// if requiring custom matrix to fake italic, prefer upright font
- FontItalic ePatternItalic = rFSD.maItalicMatrix != ItalicMatrix() ? ITALIC_NONE : rFSD.GetSlantType();
+ FontItalic ePatternItalic = rFSD.maItalicMatrix != ItalicMatrix() ? ITALIC_NONE : rFSD.GetItalic();
if ( ePatternItalic == ITALIC_NONE )
{
- if( GetSlantType() == ITALIC_NONE )
+ if( GetItalic() == ITALIC_NONE )
nMatch += 900;
}
else
{
- if( ePatternItalic == GetSlantType() )
+ if( ePatternItalic == GetItalic() )
nMatch += 900;
- else if( GetSlantType() != ITALIC_NONE )
+ else if( GetItalic() != ITALIC_NONE )
nMatch += 600;
}