fix Qt and GTK bustage in gfxFT2Fonts from bug 493280, r=jfkthame

This commit is contained in:
Takuro Ashie 2009-08-18 09:26:24 +01:00
parent ecc950211c
commit ad353a7959
2 changed files with 4 additions and 4 deletions

View File

@ -377,8 +377,8 @@ gfxPlatformGtk::UpdateFontList()
gPlatformFonts->Put(key, ff);
}
nsRefPtr<FontEntry> fe = new FontEntry(ff->mName);
ff->mFaces.AppendElement(fe);
FontEntry *fe = new FontEntry(ff->mName);
ff->AddFontEntry(fe);
if (FcPatternGetString(fs->fonts[i], FC_FILE, 0, (FcChar8 **) &str) == FcResultMatch) {
fe->mFilename = nsDependentCString(str);

View File

@ -171,8 +171,8 @@ gfxQtPlatform::UpdateFontList()
gPlatformFonts->Put(key, ff);
}
nsRefPtr<FontEntry> fe = new FontEntry(ff->Name());
ff->mFaces.AppendElement(fe);
FontEntry *fe = new FontEntry(ff->Name());
ff->AddFontEntry(fe);
if (FcPatternGetString(fs->fonts[i], FC_FILE, 0, (FcChar8 **) &str) == FcResultMatch) {
fe->mFilename = nsDependentCString(str);