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

Side by Side Diff: src/core/SkAdvancedTypefaceMetrics.h

Issue 1139123008: Revert of Font variations. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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 | « resources/android_fonts/v22/fonts.xml ('k') | src/core/SkFontDescriptor.h » ('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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkAdvancedTypefaceMetrics_DEFINED 10 #ifndef SkAdvancedTypefaceMetrics_DEFINED
(...skipping 25 matching lines...) Expand all
36 kTrueType_Font, 36 kTrueType_Font,
37 kOther_Font, 37 kOther_Font,
38 }; 38 };
39 // The type of the underlying font program. This field determines which 39 // The type of the underlying font program. This field determines which
40 // of the following fields are valid. If it is kOther_Font the per glyph 40 // of the following fields are valid. If it is kOther_Font the per glyph
41 // information will never be populated. 41 // information will never be populated.
42 FontType fType; 42 FontType fType;
43 43
44 enum FontFlags { 44 enum FontFlags {
45 kEmpty_FontFlag = 0x0, //!<No flags set 45 kEmpty_FontFlag = 0x0, //!<No flags set
46 kMultiMaster_FontFlag = 0x1, //!<May be true for Type1, CFF, or True Type fonts. 46 kMultiMaster_FontFlag = 0x1, //!<May be true for Type1 or CFF fonts.
47 kNotEmbeddable_FontFlag = 0x2, //!<May not be embedded. 47 kNotEmbeddable_FontFlag = 0x2, //!<May not be embedded.
48 kNotSubsettable_FontFlag = 0x4, //!<May not be subset. 48 kNotSubsettable_FontFlag = 0x4, //!<May not be subset.
49 }; 49 };
50 // Global font flags. 50 // Global font flags.
51 FontFlags fFlags; 51 FontFlags fFlags;
52 52
53 uint16_t fLastGlyphID; // The last valid glyph ID in the font. 53 uint16_t fLastGlyphID; // The last valid glyph ID in the font.
54 uint16_t fEmSize; // The size of the em box (defines font units). 54 uint16_t fEmSize; // The size of the em box (defines font units).
55 55
56 // These enum values match the values used in the PDF file format. 56 // These enum values match the values used in the PDF file format.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* getAdvanceData( 143 SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* getAdvanceData(
144 FontHandle fontHandle, 144 FontHandle fontHandle,
145 int num_glyphs, 145 int num_glyphs,
146 const uint32_t* glyphIDs, 146 const uint32_t* glyphIDs,
147 uint32_t glyphIDsCount, 147 uint32_t glyphIDsCount,
148 bool (*getAdvance)(FontHandle fontHandle, int gId, Data* data)); 148 bool (*getAdvance)(FontHandle fontHandle, int gId, Data* data));
149 149
150 } // namespace skia_advanced_typeface_metrics_utils 150 } // namespace skia_advanced_typeface_metrics_utils
151 151
152 #endif 152 #endif
OLDNEW
« no previous file with comments | « resources/android_fonts/v22/fonts.xml ('k') | src/core/SkFontDescriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698