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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // from the 0 one (created with the empty constructor), so we can't just | 63 // from the 0 one (created with the empty constructor), so we can't just |
64 // set everything to 0. | 64 // set everything to 0. |
65 FontPlatformData(WTF::HashTableDeletedValueType); | 65 FontPlatformData(WTF::HashTableDeletedValueType); |
66 FontPlatformData(); | 66 FontPlatformData(); |
67 FontPlatformData(float textSize, bool fakeBold, bool fakeItalic); | 67 FontPlatformData(float textSize, bool fakeBold, bool fakeItalic); |
68 FontPlatformData(const FontPlatformData&); | 68 FontPlatformData(const FontPlatformData&); |
69 FontPlatformData(SkTypeface*, const char* name, float textSize, bool fakeBol
d, bool fakeItalic, FontOrientation = Horizontal); | 69 FontPlatformData(SkTypeface*, const char* name, float textSize, bool fakeBol
d, bool fakeItalic, FontOrientation = Horizontal); |
70 FontPlatformData(const FontPlatformData& src, float textSize); | 70 FontPlatformData(const FontPlatformData& src, float textSize); |
71 ~FontPlatformData(); | 71 ~FontPlatformData(); |
72 | 72 |
| 73 String fontFamilyName() const; |
| 74 |
73 // ------------------------------------------------------------------------- | 75 // ------------------------------------------------------------------------- |
74 // Return true iff this font is monospaced (i.e. every glyph has an equal x | 76 // Return true iff this font is monospaced (i.e. every glyph has an equal x |
75 // advance) | 77 // advance) |
76 // ------------------------------------------------------------------------- | 78 // ------------------------------------------------------------------------- |
77 bool isFixedPitch() const; | 79 bool isFixedPitch() const; |
78 | 80 |
79 // ------------------------------------------------------------------------- | 81 // ------------------------------------------------------------------------- |
80 // Setup a Skia painting context to use this font. | 82 // Setup a Skia painting context to use this font. |
81 // ------------------------------------------------------------------------- | 83 // ------------------------------------------------------------------------- |
82 void setupPaint(SkPaint*) const; | 84 void setupPaint(SkPaint*) const; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 bool m_fakeItalic; | 138 bool m_fakeItalic; |
137 FontOrientation m_orientation; | 139 FontOrientation m_orientation; |
138 FontRenderStyle m_style; | 140 FontRenderStyle m_style; |
139 mutable RefPtr<HarfBuzzFace> m_harfBuzzFace; | 141 mutable RefPtr<HarfBuzzFace> m_harfBuzzFace; |
140 bool m_isHashTableDeletedValue; | 142 bool m_isHashTableDeletedValue; |
141 }; | 143 }; |
142 | 144 |
143 } // namespace WebCore | 145 } // namespace WebCore |
144 | 146 |
145 #endif // ifdef FontPlatformDataHarfBuzz_h | 147 #endif // ifdef FontPlatformDataHarfBuzz_h |
OLD | NEW |