Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: Source/platform/fonts/Font.h

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int offsetForPositionForSimpleText(const TextRun&, float position, bool incl udePartialGlyphs) const; 150 int offsetForPositionForSimpleText(const TextRun&, float position, bool incl udePartialGlyphs) const;
151 FloatRect selectionRectForSimpleText(const TextRun&, const FloatPoint&, int h, int from, int to, bool accountForGlyphBounds) const; 151 FloatRect selectionRectForSimpleText(const TextRun&, const FloatPoint&, int h, int from, int to, bool accountForGlyphBounds) const;
152 152
153 bool getEmphasisMarkGlyphData(const AtomicString&, GlyphData&) const; 153 bool getEmphasisMarkGlyphData(const AtomicString&, GlyphData&) const;
154 154
155 float floatWidthForComplexText(const TextRun&, HashSet<const SimpleFontData* >* fallbackFonts, IntRectExtent* glyphBounds) const; 155 float floatWidthForComplexText(const TextRun&, HashSet<const SimpleFontData* >* fallbackFonts, IntRectExtent* glyphBounds) const;
156 int offsetForPositionForComplexText(const TextRun&, float position, bool inc ludePartialGlyphs) const; 156 int offsetForPositionForComplexText(const TextRun&, float position, bool inc ludePartialGlyphs) const;
157 FloatRect selectionRectForComplexText(const TextRun&, const FloatPoint&, int h, int from, int to) const; 157 FloatRect selectionRectForComplexText(const TextRun&, const FloatPoint&, int h, int from, int to) const;
158 158
159 friend struct SimpleShaper; 159 friend struct SimpleShaper;
160 friend class SVGTextRunRenderingContext;
161 160
162 public: 161 public:
163 FontSelector* fontSelector() const; 162 FontSelector* fontSelector() const;
164 163
165 FontFallbackList* fontList() const { return m_fontFallbackList.get(); } 164 FontFallbackList* fontList() const { return m_fontFallbackList.get(); }
166 165
167 void willUseFontData(UChar32) const; 166 void willUseFontData(UChar32) const;
168 167
169 private: 168 private:
170 bool loadingCustomFonts() const 169 bool loadingCustomFonts() const
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 { 211 {
213 if (!tabSize) 212 if (!tabSize)
214 return fontDescription().letterSpacing(); 213 return fontDescription().letterSpacing();
215 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS pacing(); 214 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS pacing();
216 return tabWidth - fmodf(position, tabWidth); 215 return tabWidth - fmodf(position, tabWidth);
217 } 216 }
218 217
219 } // namespace blink 218 } // namespace blink
220 219
221 #endif 220 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698