OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Computer, Inc. | 2 * Copyright (C) 2006, 2007 Apple Computer, Inc. |
3 * Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved. | 3 * Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 17 matching lines...) Expand all Loading... |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #ifndef FontPlatformDataChromiumWin_h | 32 #ifndef FontPlatformDataChromiumWin_h |
33 #define FontPlatformDataChromiumWin_h | 33 #define FontPlatformDataChromiumWin_h |
34 | 34 |
35 #include "config.h" | 35 #include "config.h" |
36 | 36 |
37 #include "FontOrientation.h" | 37 #include "FontOrientation.h" |
| 38 #include "OpenTypeVerticalData.h" |
38 #include "SharedBuffer.h" | 39 #include "SharedBuffer.h" |
39 #include "SkTypeface.h" | 40 #include "SkTypeface.h" |
40 #include <wtf/Forward.h> | 41 #include <wtf/Forward.h> |
41 #include <wtf/PassRefPtr.h> | 42 #include <wtf/PassRefPtr.h> |
42 #include <wtf/RefCounted.h> | 43 #include <wtf/RefCounted.h> |
43 #include <wtf/text/StringImpl.h> | 44 #include <wtf/text/StringImpl.h> |
44 | 45 |
45 #include <usp10.h> | 46 #include <usp10.h> |
46 | 47 |
47 typedef struct HFONT__ *HFONT; | 48 typedef struct HFONT__ *HFONT; |
48 | 49 |
49 namespace WebCore { | 50 namespace WebCore { |
50 | 51 |
51 // Return a typeface associated with the hfont, and return its size and | 52 // Return a typeface associated with the hfont, and return its size and |
52 // lfQuality from the hfont's LOGFONT. The caller is now an owner of the | 53 // lfQuality from the hfont's LOGFONT. The caller is now an owner of the |
53 // typeface. | 54 // typeface. |
54 SkTypeface* CreateTypefaceFromHFont(HFONT, int* size, int* lfQuality); | 55 SkTypeface* CreateTypefaceFromHFont(HFONT, int* size, int* lfQuality); |
55 | 56 |
56 class FontDescription; | 57 class FontDescription; |
57 #if ENABLE(OPENTYPE_VERTICAL) | |
58 class OpenTypeVerticalData; | |
59 #endif | |
60 | 58 |
61 class FontPlatformData { | 59 class FontPlatformData { |
62 public: | 60 public: |
63 // Used for deleted values in the font cache's hash tables. The hash table | 61 // Used for deleted values in the font cache's hash tables. The hash table |
64 // will create us with this structure, and it will compare other values | 62 // will create us with this structure, and it will compare other values |
65 // to this "Deleted" one. It expects the Deleted one to be differentiable | 63 // to this "Deleted" one. It expects the Deleted one to be differentiable |
66 // from the NULL one (created with the empty constructor), so we can't just | 64 // from the NULL one (created with the empty constructor), so we can't just |
67 // set everything to NULL. | 65 // set everything to NULL. |
68 FontPlatformData(WTF::HashTableDeletedValueType); | 66 FontPlatformData(WTF::HashTableDeletedValueType); |
69 FontPlatformData(); | 67 FontPlatformData(); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 SkTypeface* m_typeface; // cached from m_font | 149 SkTypeface* m_typeface; // cached from m_font |
152 int m_lfQuality; // cached from m_font | 150 int m_lfQuality; // cached from m_font |
153 | 151 |
154 mutable SCRIPT_CACHE m_scriptCache; | 152 mutable SCRIPT_CACHE m_scriptCache; |
155 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties; | 153 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties; |
156 }; | 154 }; |
157 | 155 |
158 } // WebCore | 156 } // WebCore |
159 | 157 |
160 #endif // FontPlatformDataChromiumWin_h | 158 #endif // FontPlatformDataChromiumWin_h |
OLD | NEW |