| 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 setMinSizeForSubpixel(float size) { m_minSizeForSubpixel = size; } |
| 89 float minSizeForSubpixel() const { return m_minSizeForSubpixel; } |
| 88 void setHinting(SkPaint::Hinting style) | 90 void setHinting(SkPaint::Hinting style) |
| 89 { | 91 { |
| 90 m_style.useAutoHint = 0; | 92 m_style.useAutoHint = 0; |
| 91 m_style.hintStyle = style; | 93 m_style.hintStyle = style; |
| 92 } | 94 } |
| 93 #endif | 95 #endif |
| 94 bool fontContainsCharacter(UChar32 character); | 96 bool fontContainsCharacter(UChar32 character); |
| 95 | 97 |
| 96 #if ENABLE(OPENTYPE_VERTICAL) | 98 #if ENABLE(OPENTYPE_VERTICAL) |
| 97 PassRefPtr<OpenTypeVerticalData> verticalData() const; | 99 PassRefPtr<OpenTypeVerticalData> verticalData() const; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 128 bool m_syntheticBold; | 130 bool m_syntheticBold; |
| 129 bool m_syntheticItalic; | 131 bool m_syntheticItalic; |
| 130 FontOrientation m_orientation; | 132 FontOrientation m_orientation; |
| 131 FontRenderStyle m_style; | 133 FontRenderStyle m_style; |
| 132 mutable RefPtr<HarfBuzzFace> m_harfBuzzFace; | 134 mutable RefPtr<HarfBuzzFace> m_harfBuzzFace; |
| 133 bool m_isHashTableDeletedValue; | 135 bool m_isHashTableDeletedValue; |
| 134 #if OS(WIN) | 136 #if OS(WIN) |
| 135 int m_paintTextFlags; | 137 int m_paintTextFlags; |
| 136 bool m_useSubpixelPositioning; | 138 bool m_useSubpixelPositioning; |
| 137 unsigned m_minSizeForAntiAlias; | 139 unsigned m_minSizeForAntiAlias; |
| 140 float m_minSizeForSubpixel; |
| 138 #endif | 141 #endif |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace blink | 144 } // namespace blink |
| 142 | 145 |
| 143 #endif // ifdef FontPlatformDataHarfBuzz_h | 146 #endif // ifdef FontPlatformDataHarfBuzz_h |
| OLD | NEW |