summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxGDIFontList.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-19 19:22:37 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-19 19:22:37 +0100
commit38ec1c796d64fcf9d73a897685cadbf0ad74fed0 (patch)
tree94d72a131ada51fd3dc0cf8338cd447b537ddc12 /gfx/thebes/gfxGDIFontList.cpp
parentf297ef798e3b4577bb82119161ea9628f37ba796 (diff)
downloadUXP-38ec1c796d64fcf9d73a897685cadbf0ad74fed0.tar
UXP-38ec1c796d64fcf9d73a897685cadbf0ad74fed0.tar.gz
UXP-38ec1c796d64fcf9d73a897685cadbf0ad74fed0.tar.lz
UXP-38ec1c796d64fcf9d73a897685cadbf0ad74fed0.tar.xz
UXP-38ec1c796d64fcf9d73a897685cadbf0ad74fed0.zip
Remove gfx/thebes checks for Windows 7+.
Diffstat (limited to 'gfx/thebes/gfxGDIFontList.cpp')
-rw-r--r--gfx/thebes/gfxGDIFontList.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/gfx/thebes/gfxGDIFontList.cpp b/gfx/thebes/gfxGDIFontList.cpp
index 97a3d36ab..cc047ef38 100644
--- a/gfx/thebes/gfxGDIFontList.cpp
+++ b/gfx/thebes/gfxGDIFontList.cpp
@@ -862,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;