| 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 18 matching lines...) Expand all Loading... |
| 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 "SkPaint.h" | 37 #include "SkPaint.h" |
| 38 #include "SkTypeface.h" | 38 #include "SkTypeface.h" |
| 39 #include "core/platform/SharedBuffer.h" | |
| 40 #include "core/platform/graphics/FontOrientation.h" | 39 #include "core/platform/graphics/FontOrientation.h" |
| 41 #include "core/platform/graphics/opentype/OpenTypeVerticalData.h" | 40 #include "core/platform/graphics/opentype/OpenTypeVerticalData.h" |
| 42 #include <wtf/Forward.h> | 41 #include <wtf/Forward.h> |
| 43 #include <wtf/PassRefPtr.h> | 42 #include <wtf/PassRefPtr.h> |
| 44 #include <wtf/RefCounted.h> | 43 #include <wtf/RefCounted.h> |
| 45 #include <wtf/text/StringImpl.h> | 44 #include <wtf/text/StringImpl.h> |
| 46 | 45 |
| 47 #include <usp10.h> | 46 #include <usp10.h> |
| 48 | 47 |
| 49 typedef struct HFONT__ *HFONT; | 48 typedef struct HFONT__ *HFONT; |
| 50 | 49 |
| 51 namespace WebCore { | 50 namespace WebCore { |
| 52 | 51 |
| 53 // 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 |
| 54 // 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 |
| 55 // typeface. | 54 // typeface. |
| 56 SkTypeface* CreateTypefaceFromHFont(HFONT, int* size, int* paintTextFlags); | 55 SkTypeface* CreateTypefaceFromHFont(HFONT, int* size, int* paintTextFlags); |
| 57 | 56 |
| 58 class FontDescription; | 57 class FontDescription; |
| 58 class SharedBuffer; |
| 59 | 59 |
| 60 class FontPlatformData { | 60 class FontPlatformData { |
| 61 public: | 61 public: |
| 62 // Used for deleted values in the font cache's hash tables. The hash table | 62 // Used for deleted values in the font cache's hash tables. The hash table |
| 63 // will create us with this structure, and it will compare other values | 63 // will create us with this structure, and it will compare other values |
| 64 // to this "Deleted" one. It expects the Deleted one to be differentiable | 64 // to this "Deleted" one. It expects the Deleted one to be differentiable |
| 65 // from the NULL one (created with the empty constructor), so we can't just | 65 // from the NULL one (created with the empty constructor), so we can't just |
| 66 // set everything to NULL. | 66 // set everything to NULL. |
| 67 FontPlatformData(WTF::HashTableDeletedValueType); | 67 FontPlatformData(WTF::HashTableDeletedValueType); |
| 68 FontPlatformData(); | 68 FontPlatformData(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 SkTypeface* m_typeface; // cached from m_font | 158 SkTypeface* m_typeface; // cached from m_font |
| 159 int m_paintTextFlags; // cached from m_font | 159 int m_paintTextFlags; // cached from m_font |
| 160 | 160 |
| 161 mutable SCRIPT_CACHE m_scriptCache; | 161 mutable SCRIPT_CACHE m_scriptCache; |
| 162 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties; | 162 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // WebCore | 165 } // WebCore |
| 166 | 166 |
| 167 #endif // FontPlatformDataChromiumWin_h | 167 #endif // FontPlatformDataChromiumWin_h |
| OLD | NEW |