| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 m_style.hintStyle = style; | 121 m_style.hintStyle = style; |
| 122 } | 122 } |
| 123 #endif | 123 #endif |
| 124 bool fontContainsCharacter(UChar32 character); | 124 bool fontContainsCharacter(UChar32 character); |
| 125 | 125 |
| 126 PassRefPtr<OpenTypeVerticalData> verticalData() const; | 126 PassRefPtr<OpenTypeVerticalData> verticalData() const; |
| 127 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; | 127 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; |
| 128 | 128 |
| 129 #if !OS(MACOSX) | 129 #if !OS(MACOSX) |
| 130 // The returned styles are all actual styles without FontRenderStyle::NoPref
erence. | 130 // The returned styles are all actual styles without FontRenderStyle::NoPref
erence. |
| 131 const FontRenderStyle& fontRenderStyle() const { return m_style; } | 131 const FontRenderStyle& getFontRenderStyle() const { return m_style; } |
| 132 #endif | 132 #endif |
| 133 void setupPaint(SkPaint*, float deviceScaleFactor = 1, const Font* = 0) cons
t; | 133 void setupPaint(SkPaint*, float deviceScaleFactor = 1, const Font* = 0) cons
t; |
| 134 | 134 |
| 135 #if OS(WIN) | 135 #if OS(WIN) |
| 136 int paintTextFlags() const { return m_paintTextFlags; } | 136 int paintTextFlags() const { return m_paintTextFlags; } |
| 137 #else | 137 #else |
| 138 static void setHinting(SkPaint::Hinting); | 138 static void setHinting(SkPaint::Hinting); |
| 139 static void setAutoHint(bool); | 139 static void setAutoHint(bool); |
| 140 static void setUseBitmaps(bool); | 140 static void setUseBitmaps(bool); |
| 141 static void setAntiAlias(bool); | 141 static void setAntiAlias(bool); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 169 int m_paintTextFlags; | 169 int m_paintTextFlags; |
| 170 bool m_useSubpixelPositioning; | 170 bool m_useSubpixelPositioning; |
| 171 unsigned m_minSizeForAntiAlias; | 171 unsigned m_minSizeForAntiAlias; |
| 172 float m_minSizeForSubpixel; | 172 float m_minSizeForSubpixel; |
| 173 #endif | 173 #endif |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace blink | 176 } // namespace blink |
| 177 | 177 |
| 178 #endif // ifdef FontPlatformData_h | 178 #endif // ifdef FontPlatformData_h |
| OLD | NEW |