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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 bool isSVGFont() const { return m_customFontData && m_customFontData->isSVGF
ont(); } | 140 bool isSVGFont() const { return m_customFontData && m_customFontData->isSVGF
ont(); } |
141 virtual bool isCustomFont() const OVERRIDE { return m_customFontData; } | 141 virtual bool isCustomFont() const OVERRIDE { return m_customFontData; } |
142 virtual bool isLoading() const OVERRIDE { return m_customFontData ? m_custom
FontData->isLoading() : false; } | 142 virtual bool isLoading() const OVERRIDE { return m_customFontData ? m_custom
FontData->isLoading() : false; } |
143 virtual bool isLoadingFallback() const OVERRIDE { return m_customFontData ?
m_customFontData->isLoadingFallback() : false; } | 143 virtual bool isLoadingFallback() const OVERRIDE { return m_customFontData ?
m_customFontData->isLoadingFallback() : false; } |
144 virtual bool isSegmented() const OVERRIDE; | 144 virtual bool isSegmented() const OVERRIDE; |
145 virtual bool shouldSkipDrawing() const OVERRIDE { return m_customFontData &&
m_customFontData->shouldSkipDrawing(); } | 145 virtual bool shouldSkipDrawing() const OVERRIDE { return m_customFontData &&
m_customFontData->shouldSkipDrawing(); } |
146 | 146 |
147 const GlyphData& missingGlyphData() const { return m_missingGlyphData; } | 147 const GlyphData& missingGlyphData() const { return m_missingGlyphData; } |
148 void setMissingGlyphData(const GlyphData& glyphData) { m_missingGlyphData =
glyphData; } | 148 void setMissingGlyphData(const GlyphData& glyphData) { m_missingGlyphData =
glyphData; } |
149 | 149 |
150 #ifndef NDEBUG | |
151 virtual String description() const OVERRIDE; | |
152 #endif | |
153 | |
154 #if OS(MACOSX) | 150 #if OS(MACOSX) |
155 const SimpleFontData* getCompositeFontReferenceFontData(NSFont *key) const; | 151 const SimpleFontData* getCompositeFontReferenceFontData(NSFont *key) const; |
156 NSFont* getNSFont() const { return m_platformData.font(); } | 152 NSFont* getNSFont() const { return m_platformData.font(); } |
157 #endif | 153 #endif |
158 | 154 |
159 #if OS(MACOSX) | 155 #if OS(MACOSX) |
160 CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation)
const; | 156 CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation)
const; |
161 #endif | 157 #endif |
162 | 158 |
163 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; | 159 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 width = platformWidthForGlyph(glyph); | 281 width = platformWidthForGlyph(glyph); |
286 | 282 |
287 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 283 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |
288 return width; | 284 return width; |
289 } | 285 } |
290 | 286 |
291 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 287 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |
292 | 288 |
293 } // namespace blink | 289 } // namespace blink |
294 #endif // SimpleFontData_h | 290 #endif // SimpleFontData_h |
OLD | NEW |