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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; } | 85 bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; } |
86 | 86 |
87 ~FontPlatformData(); | 87 ~FontPlatformData(); |
88 | 88 |
89 bool isFixedPitch() const; | 89 bool isFixedPitch() const; |
90 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } | 90 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } |
91 float size() const { return m_size; } | 91 float size() const { return m_size; } |
92 SkTypeface* typeface() const { return m_typeface.get(); } | 92 SkTypeface* typeface() const { return m_typeface.get(); } |
93 int paintTextFlags() const { return m_paintTextFlags; } | 93 int paintTextFlags() const { return m_paintTextFlags; } |
94 | 94 |
| 95 String fontFamilyName() const; |
| 96 |
95 FontOrientation orientation() const { return m_orientation; } | 97 FontOrientation orientation() const { return m_orientation; } |
96 void setOrientation(FontOrientation orientation) { m_orientation = orientati
on; } | 98 void setOrientation(FontOrientation orientation) { m_orientation = orientati
on; } |
97 | 99 |
98 unsigned hash() const | 100 unsigned hash() const |
99 { | 101 { |
100 return m_font ? m_font->hash() : NULL; | 102 return m_font ? m_font->hash() : NULL; |
101 } | 103 } |
102 | 104 |
103 bool operator==(const FontPlatformData& other) const | 105 bool operator==(const FontPlatformData& other) const |
104 { | 106 { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 164 |
163 mutable SCRIPT_CACHE m_scriptCache; | 165 mutable SCRIPT_CACHE m_scriptCache; |
164 mutable OwnPtr<SCRIPT_FONTPROPERTIES> m_scriptFontProperties; | 166 mutable OwnPtr<SCRIPT_FONTPROPERTIES> m_scriptFontProperties; |
165 | 167 |
166 bool m_isHashTableDeletedValue; | 168 bool m_isHashTableDeletedValue; |
167 }; | 169 }; |
168 | 170 |
169 } // WebCore | 171 } // WebCore |
170 | 172 |
171 #endif // FontPlatformDataChromiumWin_h | 173 #endif // FontPlatformDataChromiumWin_h |
OLD | NEW |