respect slant param

git-svn-id: http://skia.googlecode.com/svn/trunk@8397 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-03-26 19:02:52 +00:00
parent 7244e88383
commit ca5c841a64

View File

@ -63,7 +63,7 @@ SkFontStyle::SkFontStyle(int weight, int width, Slant slant) {
fUnion.fU32 = 0;
fUnion.fR.fWeight = SkPin32(weight, kThin_Weight, kBlack_Weight);
fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width);
fUnion.fR.fSlant = kUpright_Slant;
fUnion.fR.fSlant = SkPin32(slant, kUpright_Slant, kItalic_Slant);
}
int SkFontMgr::countFamilies() {