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

Side by Side Diff: Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.h

Issue 213673011: [DirectWrite] Force full hinting for certain fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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, Google Inc. All rights reserved. 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 FontOrientation orientation() const { return m_orientation; } 78 FontOrientation orientation() const { return m_orientation; }
79 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; } 79 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; }
80 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold; } 80 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold; }
81 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti cItalic; } 81 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti cItalic; }
82 bool operator==(const FontPlatformData&) const; 82 bool operator==(const FontPlatformData&) const;
83 FontPlatformData& operator=(const FontPlatformData&); 83 FontPlatformData& operator=(const FontPlatformData&);
84 bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; } 84 bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; }
85 #if OS(WIN) 85 #if OS(WIN)
86 void setMinSizeForAntiAlias(unsigned size) { m_minSizeForAntiAlias = size; } 86 void setMinSizeForAntiAlias(unsigned size) { m_minSizeForAntiAlias = size; }
87 unsigned minSizeForAntiAlias() const { return m_minSizeForAntiAlias; } 87 unsigned minSizeForAntiAlias() const { return m_minSizeForAntiAlias; }
88 void setHinting(SkPaint::Hinting style)
89 {
90 m_style.useAutoHint = 0;
91 m_style.hintStyle = style;
92 }
88 #endif 93 #endif
89 94
90 #if ENABLE(OPENTYPE_VERTICAL) 95 #if ENABLE(OPENTYPE_VERTICAL)
91 PassRefPtr<OpenTypeVerticalData> verticalData() const; 96 PassRefPtr<OpenTypeVerticalData> verticalData() const;
92 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; 97 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const;
93 #endif 98 #endif
94 99
95 #ifndef NDEBUG 100 #ifndef NDEBUG
96 String description() const; 101 String description() const;
97 #endif 102 #endif
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #if OS(WIN) 136 #if OS(WIN)
132 int m_paintTextFlags; 137 int m_paintTextFlags;
133 bool m_useSubpixelPositioning; 138 bool m_useSubpixelPositioning;
134 unsigned m_minSizeForAntiAlias; 139 unsigned m_minSizeForAntiAlias;
135 #endif 140 #endif
136 }; 141 };
137 142
138 } // namespace WebCore 143 } // namespace WebCore
139 144
140 #endif // ifdef FontPlatformDataHarfBuzz_h 145 #endif // ifdef FontPlatformDataHarfBuzz_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/fonts/win/FontCacheSkiaWin.cpp » ('j') | Source/platform/fonts/win/FontCacheSkiaWin.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698