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

Side by Side Diff: Source/core/platform/graphics/FontPlatformData.h

Issue 22923010: DevTools: Add CSS.getPlatformFontsForNode in protocol.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use HFONT instead of SKTypeface on Win Created 7 years, 4 months 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) 2006, 2007, 2008, 2010 Apple Inc. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc.
3 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 3 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
4 * Copyright (C) 2007 Holger Hans Peter Freyther 4 * Copyright (C) 2007 Holger Hans Peter Freyther
5 * Copyright (C) 2007 Pioneer Research Center USA, Inc. 5 * Copyright (C) 2007 Pioneer Research Center USA, Inc.
6 * Copyright (C) 2010, 2011 Brent Fulgham <bfulgham@webkit.org> 6 * Copyright (C) 2010, 2011 Brent Fulgham <bfulgham@webkit.org>
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 #endif 100 #endif
101 101
102 #if OS(DARWIN) 102 #if OS(DARWIN)
103 CGFontRef cgFont() const { return m_cgFont.get(); } 103 CGFontRef cgFont() const { return m_cgFont.get(); }
104 CTFontRef ctFont() const; 104 CTFontRef ctFont() const;
105 105
106 bool roundsGlyphAdvances() const; 106 bool roundsGlyphAdvances() const;
107 bool allowsLigatures() const; 107 bool allowsLigatures() const;
108 #endif 108 #endif
109 109
110 String fontFamilyName() const;
110 bool isFixedPitch() const; 111 bool isFixedPitch() const;
111 float size() const { return m_size; } 112 float size() const { return m_size; }
112 void setSize(float size) { m_size = size; } 113 void setSize(float size) { m_size = size; }
113 bool syntheticBold() const { return m_syntheticBold; } 114 bool syntheticBold() const { return m_syntheticBold; }
114 bool syntheticOblique() const { return m_syntheticOblique; } 115 bool syntheticOblique() const { return m_syntheticOblique; }
115 bool isColorBitmapFont() const { return m_isColorBitmapFont; } 116 bool isColorBitmapFont() const { return m_isColorBitmapFont; }
116 bool isCompositeFontReference() const { return m_isCompositeFontReference; } 117 bool isCompositeFontReference() const { return m_isCompositeFontReference; }
117 #if OS(DARWIN) 118 #if OS(DARWIN)
118 bool isPrinterFont() const { return m_isPrinterFont; } 119 bool isPrinterFont() const { return m_isPrinterFont; }
119 #endif 120 #endif
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 #if OS(DARWIN) 204 #if OS(DARWIN)
204 bool m_isPrinterFont; 205 bool m_isPrinterFont;
205 #endif 206 #endif
206 }; 207 };
207 208
208 } // namespace WebCore 209 } // namespace WebCore
209 210
210 #endif // FontPlatformData_h 211 #endif // FontPlatformData_h
211 212
212 #endif 213 #endif
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698