OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008 Holger Hans Peter Freyther | 6 * Copyright (C) 2008 Holger Hans Peter Freyther |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 bool loadingCustomFonts() const | 180 bool loadingCustomFonts() const |
181 { | 181 { |
182 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); | 182 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); |
183 } | 183 } |
184 | 184 |
185 bool shouldSkipDrawing() const | 185 bool shouldSkipDrawing() const |
186 { | 186 { |
187 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); | 187 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); |
188 } | 188 } |
189 | 189 |
190 PassTextBlobPtr buildTextBlob(const GlyphBuffer&, float initialAdvance, cons
t FloatRect& bounds, float& advance) const; | 190 PassTextBlobPtr buildTextBlob(const GlyphBuffer&, float initialAdvance, cons
t FloatRect& bounds, |
| 191 float& advance, bool couldUseLCD) const; |
191 | 192 |
192 FontDescription m_fontDescription; | 193 FontDescription m_fontDescription; |
193 mutable RefPtr<FontFallbackList> m_fontFallbackList; | 194 mutable RefPtr<FontFallbackList> m_fontFallbackList; |
194 }; | 195 }; |
195 | 196 |
196 inline Font::~Font() | 197 inline Font::~Font() |
197 { | 198 { |
198 } | 199 } |
199 | 200 |
200 inline const SimpleFontData* Font::primaryFont() const | 201 inline const SimpleFontData* Font::primaryFont() const |
(...skipping 23 matching lines...) Expand all Loading... |
224 { | 225 { |
225 if (!tabSize) | 226 if (!tabSize) |
226 return fontDescription().letterSpacing(); | 227 return fontDescription().letterSpacing(); |
227 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); | 228 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); |
228 return tabWidth - fmodf(position, tabWidth); | 229 return tabWidth - fmodf(position, tabWidth); |
229 } | 230 } |
230 | 231 |
231 } // namespace blink | 232 } // namespace blink |
232 | 233 |
233 #endif | 234 #endif |
OLD | NEW |