OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 FontOrientation orientation() const { return m_orientation; } | 78 FontOrientation orientation() const { return m_orientation; } |
79 void setOrientation(FontOrientation orientation) { m_orientation = orientati
on; } | 79 void setOrientation(FontOrientation orientation) { m_orientation = orientati
on; } |
80 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold;
} | 80 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold;
} |
81 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti
cItalic; } | 81 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti
cItalic; } |
82 bool operator==(const FontPlatformData&) const; | 82 bool operator==(const FontPlatformData&) const; |
83 FontPlatformData& operator=(const FontPlatformData&); | 83 FontPlatformData& operator=(const FontPlatformData&); |
84 bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; } | 84 bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; } |
85 #if OS(WIN) | 85 #if OS(WIN) |
86 void setMinSizeForAntiAlias(unsigned size) { m_minSizeForAntiAlias = size; } | 86 void setMinSizeForAntiAlias(unsigned size) { m_minSizeForAntiAlias = size; } |
87 unsigned minSizeForAntiAlias() const { return m_minSizeForAntiAlias; } | 87 unsigned minSizeForAntiAlias() const { return m_minSizeForAntiAlias; } |
| 88 void setHinting(SkPaint::Hinting style) |
| 89 { |
| 90 m_style.useAutoHint = 0; |
| 91 m_style.hintStyle = style; |
| 92 } |
88 #endif | 93 #endif |
89 | 94 |
90 #if ENABLE(OPENTYPE_VERTICAL) | 95 #if ENABLE(OPENTYPE_VERTICAL) |
91 PassRefPtr<OpenTypeVerticalData> verticalData() const; | 96 PassRefPtr<OpenTypeVerticalData> verticalData() const; |
92 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; | 97 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; |
93 #endif | 98 #endif |
94 | 99 |
95 #ifndef NDEBUG | 100 #ifndef NDEBUG |
96 String description() const; | 101 String description() const; |
97 #endif | 102 #endif |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 #if OS(WIN) | 136 #if OS(WIN) |
132 int m_paintTextFlags; | 137 int m_paintTextFlags; |
133 bool m_useSubpixelPositioning; | 138 bool m_useSubpixelPositioning; |
134 unsigned m_minSizeForAntiAlias; | 139 unsigned m_minSizeForAntiAlias; |
135 #endif | 140 #endif |
136 }; | 141 }; |
137 | 142 |
138 } // namespace WebCore | 143 } // namespace WebCore |
139 | 144 |
140 #endif // ifdef FontPlatformDataHarfBuzz_h | 145 #endif // ifdef FontPlatformDataHarfBuzz_h |
OLD | NEW |