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 157 matching lines...) Loading... |
168 FontFallbackList* fontList() const { return m_fontFallbackList.get(); } | 168 FontFallbackList* fontList() const { return m_fontFallbackList.get(); } |
169 | 169 |
170 void willUseFontData() const; | 170 void willUseFontData() const; |
171 | 171 |
172 private: | 172 private: |
173 bool loadingCustomFonts() const | 173 bool loadingCustomFonts() const |
174 { | 174 { |
175 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); | 175 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); |
176 } | 176 } |
177 | 177 |
| 178 bool shouldSkipDrawing() const |
| 179 { |
| 180 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); |
| 181 } |
| 182 |
178 FontDescription m_fontDescription; | 183 FontDescription m_fontDescription; |
179 mutable RefPtr<FontFallbackList> m_fontFallbackList; | 184 mutable RefPtr<FontFallbackList> m_fontFallbackList; |
180 }; | 185 }; |
181 | 186 |
182 inline Font::~Font() | 187 inline Font::~Font() |
183 { | 188 { |
184 } | 189 } |
185 | 190 |
186 inline const SimpleFontData* Font::primaryFont() const | 191 inline const SimpleFontData* Font::primaryFont() const |
187 { | 192 { |
(...skipping 22 matching lines...) Loading... |
210 { | 215 { |
211 if (!tabSize) | 216 if (!tabSize) |
212 return fontDescription().letterSpacing(); | 217 return fontDescription().letterSpacing(); |
213 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); | 218 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); |
214 return tabWidth - fmodf(position, tabWidth); | 219 return tabWidth - fmodf(position, tabWidth); |
215 } | 220 } |
216 | 221 |
217 } | 222 } |
218 | 223 |
219 #endif | 224 #endif |
OLD | NEW |