| Index: Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp
|
| diff --git a/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp b/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp
|
| index ef95574f1f1821759055fb4dd033dcbeb210c257..79b46e3a5373be1f4215f86a7bef46d4b359cdfa 100644
|
| --- a/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp
|
| +++ b/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp
|
| @@ -224,6 +224,18 @@ FontPlatformData::~FontPlatformData()
|
| m_scriptCache = 0;
|
| }
|
|
|
| +String FontPlatformData::fontFamilyName() const
|
| +{
|
| + HWndDC dc(0);
|
| + HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont()));
|
| + WCHAR name[LF_FACESIZE];
|
| + unsigned resultLength = GetTextFace(dc, LF_FACESIZE, name);
|
| + if (resultLength > 0)
|
| + resultLength--; // ignore the null terminator
|
| + SelectObject(dc, oldFont);
|
| + return String(name, resultLength);
|
| +}
|
| +
|
| bool FontPlatformData::isFixedPitch() const
|
| {
|
| #if ENABLE(GDI_FONTS_ON_WINDOWS)
|
|
|