| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |