Set face index correctly. Bug 350455, patch by ToshihiroYamagishi

<toshihiro@turbolinux.co.jp>, r=mozilla@behdad.org, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@215148 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-11-11 04:56:22 +00:00
parent ee46937eb5
commit e30ce6a464

View File

@@ -742,6 +742,7 @@ nsXftEntry::nsXftEntry(FcPattern *aFontPattern)
mFaceIndex = 0;
char *fcResult;
int fcIndex;
if (FcPatternGetString(aFontPattern, FC_FILE, 0, (FcChar8 **) &fcResult)
== FcResultMatch)
@@ -754,6 +755,10 @@ nsXftEntry::nsXftEntry(FcPattern *aFontPattern)
if (FcPatternGetString(aFontPattern, FC_STYLE, 0, (FcChar8 **) &fcResult)
== FcResultMatch)
mStyleName = fcResult;
if (FcPatternGetInteger(aFontPattern, FC_INDEX, 0, &fcIndex)
== FcResultMatch)
mFaceIndex = fcIndex;
}