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

Side by Side Diff: Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h

Issue 17080004: Move windows specific isFixedPitch to FontPlatformData (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Computer, Inc. 2 * Copyright (C) 2006, 2007 Apple Computer, Inc.
3 * Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved. 3 * Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #if !ENABLE(GDI_FONTS_ON_WINDOWS) 74 #if !ENABLE(GDI_FONTS_ON_WINDOWS)
75 void setupPaint(SkPaint*) const; 75 void setupPaint(SkPaint*) const;
76 #endif 76 #endif
77 77
78 FontPlatformData& operator=(const FontPlatformData&); 78 FontPlatformData& operator=(const FontPlatformData&);
79 79
80 bool isHashTableDeletedValue() const { return m_font == hashTableDeletedFont Value(); } 80 bool isHashTableDeletedValue() const { return m_font == hashTableDeletedFont Value(); }
81 81
82 ~FontPlatformData(); 82 ~FontPlatformData();
83 83
84 bool isFixedPitch() const;
84 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } 85 HFONT hfont() const { return m_font ? m_font->hfont() : 0; }
85 float size() const { return m_size; } 86 float size() const { return m_size; }
86 SkTypeface* typeface() const { return m_typeface; } 87 SkTypeface* typeface() const { return m_typeface; }
87 int paintTextFlags() const { return m_paintTextFlags; } 88 int paintTextFlags() const { return m_paintTextFlags; }
88 89
89 FontOrientation orientation() const { return m_orientation; } 90 FontOrientation orientation() const { return m_orientation; }
90 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; } 91 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; }
91 92
92 unsigned hash() const 93 unsigned hash() const
93 { 94 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 SkTypeface* m_typeface; // cached from m_font 157 SkTypeface* m_typeface; // cached from m_font
157 int m_paintTextFlags; // cached from m_font 158 int m_paintTextFlags; // cached from m_font
158 159
159 mutable SCRIPT_CACHE m_scriptCache; 160 mutable SCRIPT_CACHE m_scriptCache;
160 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties; 161 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties;
161 }; 162 };
162 163
163 } // WebCore 164 } // WebCore
164 165
165 #endif // FontPlatformDataChromiumWin_h 166 #endif // FontPlatformDataChromiumWin_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698