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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 case AutoVariant: | 93 case AutoVariant: |
94 case NormalVariant: | 94 case NormalVariant: |
95 break; | 95 break; |
96 } | 96 } |
97 ASSERT_NOT_REACHED(); | 97 ASSERT_NOT_REACHED(); |
98 return const_cast<SimpleFontData*>(this); | 98 return const_cast<SimpleFontData*>(this); |
99 } | 99 } |
100 | 100 |
101 PassRefPtr<SimpleFontData> verticalRightOrientationFontData() const; | 101 PassRefPtr<SimpleFontData> verticalRightOrientationFontData() const; |
102 PassRefPtr<SimpleFontData> uprightOrientationFontData() const; | 102 PassRefPtr<SimpleFontData> uprightOrientationFontData() const; |
| 103 PassRefPtr<SimpleFontData> subpixelAscentDescentFontData() const; |
103 | 104 |
104 bool hasVerticalGlyphs() const { return m_hasVerticalGlyphs; } | 105 bool hasVerticalGlyphs() const { return m_hasVerticalGlyphs; } |
105 bool isTextOrientationFallback() const { return m_isTextOrientationFallback; } | 106 bool isTextOrientationFallback() const { return m_isTextOrientationFallback; } |
106 bool isTextOrientationFallbackOf(const SimpleFontData*) const; | 107 bool isTextOrientationFallbackOf(const SimpleFontData*) const; |
107 | 108 |
108 FontMetrics& getFontMetrics() { return m_fontMetrics; } | 109 FontMetrics& getFontMetrics() { return m_fontMetrics; } |
109 const FontMetrics& getFontMetrics() const { return m_fontMetrics; } | 110 const FontMetrics& getFontMetrics() const { return m_fontMetrics; } |
110 float sizePerUnit() const { | 111 float sizePerUnit() const { |
111 return platformData().size() / | 112 return platformData().size() / |
112 (getFontMetrics().unitsPerEm() ? getFontMetrics().unitsPerEm() : 1); | 113 (getFontMetrics().unitsPerEm() ? getFontMetrics().unitsPerEm() : 1); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 257 |
257 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); | 258 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); |
258 return width; | 259 return width; |
259 #endif | 260 #endif |
260 } | 261 } |
261 | 262 |
262 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); | 263 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); |
263 | 264 |
264 } // namespace blink | 265 } // namespace blink |
265 #endif // SimpleFontData_h | 266 #endif // SimpleFontData_h |
OLD | NEW |