webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
FontCustomPlatformData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2008, 2016 Apple Inc. All rights reserved.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  *
19  */
20 
21 #ifndef FontCustomPlatformData_h
22 #define FontCustomPlatformData_h
23 
24 #include "TextFlags.h"
25 #include <windows.h>
26 #include <wtf/Forward.h>
27 #include <wtf/Noncopyable.h>
28 #include <wtf/text/WTFString.h>
29 
30 typedef struct CGFont* CGFontRef;
31 
32 namespace WebCore {
33 
34 class FontDescription;
35 class FontPlatformData;
36 class SharedBuffer;
37 
38 struct FontCustomPlatformData {
40 public:
41  FontCustomPlatformData(HANDLE fontReference, const String& name)
42  : m_fontReference(fontReference)
43  , m_name(name)
44  {
45  }
46 
48 
49  FontPlatformData fontPlatformData(const FontDescription&, bool bold, bool italic);
50 
51  static bool supportsFormat(const String&);
52 
55 };
56 
57 std::unique_ptr<FontCustomPlatformData> createFontCustomPlatformData(SharedBuffer&);
58 
59 }
60 
61 #endif
WTF_MAKE_NONCOPYABLE(FontCustomPlatformData)
~FontCustomPlatformData()
Definition: FontCustomPlatformDataFreeType.cpp:71
Definition: WTFString.h:78
FontCustomPlatformData(CTFontDescriptorRef fontDescriptor)
Definition: FontCustomPlatformData.h:45
Definition: FontPlatformData.h:77
Definition: SharedBuffer.h:52
EGLImageKHR EGLint * name
Definition: eglext.h:851
std::unique_ptr< FontCustomPlatformData > createFontCustomPlatformData(SharedBuffer &buffer)
Definition: FontCustomPlatformDataFreeType.cpp:81
static bool supportsFormat(const String &)
Definition: FontCustomPlatformDataFreeType.cpp:95
String m_name
Definition: FontCustomPlatformData.h:54
Definition: FontDescription.h:41
FontPlatformData fontPlatformData(const FontDescription &, bool bold, bool italic, const FontFeatureSettings &fontFaceFeatures, const FontVariantSettings &fontFaceVariantSettings)
Definition: FontCustomPlatformData.cpp:37
HANDLE m_fontReference
Definition: FontCustomPlatformData.h:53
FontCustomPlatformData(HANDLE fontReference, const String &name)
Definition: FontCustomPlatformData.h:41
This file is generated by create-http-header-name-table, do not edit.
Definition: CharsetData.cpp:6
struct CGFont * CGFontRef
Definition: FontCustomPlatformData.h:30