summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxGDIFontList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/thebes/gfxGDIFontList.cpp')
-rw-r--r--gfx/thebes/gfxGDIFontList.cpp32
1 files changed, 4 insertions, 28 deletions
diff --git a/gfx/thebes/gfxGDIFontList.cpp b/gfx/thebes/gfxGDIFontList.cpp
index d80c49356..cc047ef38 100644
--- a/gfx/thebes/gfxGDIFontList.cpp
+++ b/gfx/thebes/gfxGDIFontList.cpp
@@ -37,11 +37,6 @@ using namespace mozilla;
#define ROUND(x) floor((x) + 0.5)
-
-#ifndef CLEARTYPE_QUALITY
-#define CLEARTYPE_QUALITY 5
-#endif
-
#define LOG_FONTLIST(args) MOZ_LOG(gfxPlatform::GetLog(eGfxLog_fontlist), \
LogLevel::Debug, args)
#define LOG_FONTLIST_ENABLED() MOZ_LOG_TEST( \
@@ -222,16 +217,7 @@ GDIFontEntry::IsSymbolFont()
gfxFont *
GDIFontEntry::CreateFontInstance(const gfxFontStyle* aFontStyle, bool aNeedsBold)
{
- bool isXP = !IsVistaOrLater();
-
- bool useClearType = isXP && !aFontStyle->systemFont &&
- (gfxWindowsPlatform::GetPlatform()->UseClearTypeAlways() ||
- (mIsDataUserFont &&
- gfxWindowsPlatform::GetPlatform()->UseClearTypeForDownloadableFonts()));
-
- return new gfxGDIFont(this, aFontStyle, aNeedsBold,
- (useClearType ? gfxFont::kAntialiasSubpixel
- : gfxFont::kAntialiasDefault));
+ return new gfxGDIFont(this, aFontStyle, aNeedsBold);
}
nsresult
@@ -263,8 +249,7 @@ GDIFontEntry::CopyFontTable(uint32_t aTableTag, nsTArray<uint8_t>& aBuffer)
void
GDIFontEntry::FillLogFont(LOGFONTW *aLogFont,
- uint16_t aWeight, gfxFloat aSize,
- bool aUseCleartype)
+ uint16_t aWeight, gfxFloat aSize)
{
memcpy(aLogFont, &mLogFont, sizeof(LOGFONTW));
@@ -290,8 +275,6 @@ GDIFontEntry::FillLogFont(LOGFONTW *aLogFont,
if (mIsDataUserFont) {
aLogFont->lfItalic = 0;
}
-
- aLogFont->lfQuality = (aUseCleartype ? CLEARTYPE_QUALITY : DEFAULT_QUALITY);
}
#define MISSING_GLYPH 0x1F // glyph index returned for missing characters
@@ -879,15 +862,8 @@ gfxGDIFontList::MakePlatformFont(const nsAString& aFontName,
gfxWindowsFontType(isCFF ? GFX_FONT_TYPE_PS_OPENTYPE : GFX_FONT_TYPE_TRUETYPE) /*type*/,
aStyle, w, aStretch, winUserFontData, false);
- if (!fe)
- return fe;
-
- fe->mIsDataUserFont = true;
-
- // Uniscribe doesn't place CFF fonts loaded privately
- // via AddFontMemResourceEx on XP/Vista
- if (isCFF && !IsWin7OrLater()) {
- fe->mForceGDI = true;
+ if (fe) {
+ fe->mIsDataUserFont = true;
}
return fe;