OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the internal font implementation. | 2 * This file is part of the internal font implementation. |
3 * | 3 * |
4 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. |
5 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 5 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "platform/fonts/FontPlatformData.h" | 32 #include "platform/fonts/FontPlatformData.h" |
33 #include "platform/fonts/GlyphBuffer.h" | 33 #include "platform/fonts/GlyphBuffer.h" |
34 #include "platform/fonts/GlyphMetricsMap.h" | 34 #include "platform/fonts/GlyphMetricsMap.h" |
35 #include "platform/fonts/GlyphPageTreeNode.h" | 35 #include "platform/fonts/GlyphPageTreeNode.h" |
36 #include "platform/fonts/TypesettingFeatures.h" | 36 #include "platform/fonts/TypesettingFeatures.h" |
37 #include "platform/fonts/opentype/OpenTypeVerticalData.h" | 37 #include "platform/fonts/opentype/OpenTypeVerticalData.h" |
38 #include "platform/geometry/FloatRect.h" | 38 #include "platform/geometry/FloatRect.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/PassOwnPtr.h" | 40 #include "wtf/PassOwnPtr.h" |
41 #include "wtf/text/StringHash.h" | 41 #include "wtf/text/StringHash.h" |
42 #include "wtf/UnusedParam.h" | |
43 | 42 |
44 #if OS(MACOSX) | 43 #if OS(MACOSX) |
45 #include "wtf/RetainPtr.h" | 44 #include "wtf/RetainPtr.h" |
46 #endif | 45 #endif |
47 | 46 |
48 namespace WebCore { | 47 namespace WebCore { |
49 | 48 |
50 class CSSFontFaceSource; | 49 class CSSFontFaceSource; |
51 class FontDescription; | 50 class FontDescription; |
52 class SharedBuffer; | 51 class SharedBuffer; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 #endif | 162 #endif |
164 | 163 |
165 #if OS(MACOSX) | 164 #if OS(MACOSX) |
166 CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation)
const; | 165 CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation)
const; |
167 #endif | 166 #endif |
168 | 167 |
169 #if OS(MACOSX) || USE(HARFBUZZ) | 168 #if OS(MACOSX) || USE(HARFBUZZ) |
170 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; | 169 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; |
171 #endif | 170 #endif |
172 | 171 |
173 bool applyTransforms(GlyphBufferGlyph* glyphs, GlyphBufferAdvance* advances,
size_t glyphCount, TypesettingFeatures typesettingFeatures) const | 172 bool applyTransforms(GlyphBufferGlyph*, GlyphBufferAdvance*, size_t, Typeset
tingFeatures) const |
174 { | 173 { |
175 UNUSED_PARAM(glyphs); | |
176 UNUSED_PARAM(advances); | |
177 UNUSED_PARAM(glyphCount); | |
178 UNUSED_PARAM(typesettingFeatures); | |
179 return false; | 174 return false; |
180 } | 175 } |
181 | 176 |
182 PassRefPtr<CustomFontData> customFontData() const { return m_customFontData;
} | 177 PassRefPtr<CustomFontData> customFontData() const { return m_customFontData;
} |
183 | 178 |
184 private: | 179 private: |
185 SimpleFontData(const FontPlatformData&, PassRefPtr<CustomFontData> customDat
a, bool isTextOrientationFallback = false); | 180 SimpleFontData(const FontPlatformData&, PassRefPtr<CustomFontData> customDat
a, bool isTextOrientationFallback = false); |
186 | 181 |
187 SimpleFontData(PassRefPtr<CustomFontData> customData, float fontSize, bool s
yntheticBold, bool syntheticItalic); | 182 SimpleFontData(PassRefPtr<CustomFontData> customData, float fontSize, bool s
yntheticBold, bool syntheticItalic); |
188 | 183 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 #endif | 294 #endif |
300 else | 295 else |
301 width = platformWidthForGlyph(glyph); | 296 width = platformWidthForGlyph(glyph); |
302 | 297 |
303 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 298 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |
304 return width; | 299 return width; |
305 } | 300 } |
306 | 301 |
307 } // namespace WebCore | 302 } // namespace WebCore |
308 #endif // SimpleFontData_h | 303 #endif // SimpleFontData_h |
OLD | NEW |