Lines Matching defs:OpenType

37 namespace OpenType {
53 OpenType::Fixed version;
54 OpenType::Int16 ascender;
55 OpenType::Int16 descender;
56 OpenType::Int16 lineGap;
57 OpenType::Int16 advanceWidthMax;
58 OpenType::Int16 minLeftSideBearing;
59 OpenType::Int16 minRightSideBearing;
60 OpenType::Int16 xMaxExtent;
61 OpenType::Int16 caretSlopeRise;
62 OpenType::Int16 caretSlopeRun;
63 OpenType::Int16 caretOffset;
64 OpenType::Int16 reserved[4];
65 OpenType::Int16 metricDataFormat;
66 OpenType::UInt16 numberOfHMetrics;
70 OpenType::Fixed version;
71 OpenType::Int16 ascent;
72 OpenType::Int16 descent;
73 OpenType::Int16 lineGap;
74 OpenType::Int16 advanceHeightMax;
75 OpenType::Int16 minTopSideBearing;
76 OpenType::Int16 minBottomSideBearing;
77 OpenType::Int16 yMaxExtent;
78 OpenType::Int16 caretSlopeRise;
79 OpenType::Int16 caretSlopeRun;
80 OpenType::Int16 caretOffset;
81 OpenType::Int16 reserved[4];
82 OpenType::Int16 metricDataFormat;
83 OpenType::UInt16 numOfLongVerMetrics;
88 OpenType::UInt16 advanceWidth;
89 OpenType::Int16 lsb;
95 OpenType::UInt16 advanceHeight;
96 OpenType::Int16 topSideBearing;
101 OpenType::UInt16 majorVersion;
102 OpenType::UInt16 minorVersion;
103 OpenType::Int16 defaultVertOriginY;
104 OpenType::UInt16 numVertOriginYMetrics;
106 OpenType::UInt16 glyphIndex;
107 OpenType::Int16 vertOriginY;
114 OpenType::UInt16 coverageFormat;
118 OpenType::UInt16 glyphCount;
119 OpenType::GlyphID glyphArray[1];
123 OpenType::UInt16 rangeCount;
125 OpenType::GlyphID start;
126 OpenType::GlyphID end;
127 OpenType::UInt16 startCoverageIndex;
132 OpenType::UInt16 substFormat;
133 OpenType::Offset coverageOffset;
139 OpenType::UInt16 glyphCount;
140 OpenType::GlyphID substitute[1];
144 OpenType::UInt16 lookupType;
145 OpenType::UInt16 lookupFlag;
146 OpenType::UInt16 subTableCount;
147 OpenType::Offset subTableOffsets[1];
148 // OpenType::UInt16 markFilteringSet; this field comes after variable length, so offset is determined dynamically.
193 uint16_t fromEnd = coverage2->ranges[i].end + 1; // OpenType "end" is inclusive
210 OpenType::UInt16 lookupCount;
211 OpenType::Offset lookupOffsets[1];
223 OpenType::Offset featureParams;
224 OpenType::UInt16 lookupCount;
225 OpenType::UInt16 lookupListIndex[1];
242 OpenType::UInt16 featureCount;
244 OpenType::Tag featureTag;
245 OpenType::Offset featureOffset;
248 const FeatureTable* feature(uint16_t index, OpenType::Tag tag, const SharedBuffer& buffer) const
258 const FeatureTable* findFeature(OpenType::Tag tag, const SharedBuffer& buffer) const
269 OpenType::Offset lookupOrder;
270 OpenType::UInt16 reqFeatureIndex;
271 OpenType::UInt16 featureCount;
272 OpenType::UInt16 featureIndex[1];
274 const FeatureTable* feature(OpenType::Tag featureTag, const FeatureList* features, const SharedBuffer& buffer) const
289 OpenType::Offset defaultLangSysOffset;
290 OpenType::UInt16 langSysCount;
292 OpenType::Tag langSysTag;
293 OpenType::Offset langSysOffset;
311 OpenType::UInt16 scriptCount;
313 OpenType::Tag scriptTag;
314 OpenType::Offset scriptOffset;
317 const ScriptTable* script(OpenType::Tag tag, const SharedBuffer& buffer) const
334 const ScriptTable* scriptOfDefaultTag = script(OpenType::DefaultScriptTag, buffer);
350 OpenType::Fixed version;
351 OpenType::Offset scriptListOffset;
352 OpenType::Offset featureListOffset;
353 OpenType::Offset lookupListOffset;
367 const FeatureTable* feature(OpenType::Tag featureTag, const SharedBuffer& buffer) const
386 const FeatureTable* verticalFeatureTable = feature(OpenType::VertFeatureTag, buffer);
396 } // namespace OpenType
408 // If these tables are missing, it's not an OpenType font.
409 RefPtr<SharedBuffer> buffer = platformData.openTypeTable(OpenType::HheaTag);
410 const OpenType::HheaTable* hhea = OpenType::validateTable<OpenType::HheaTable>(buffer);
419 buffer = platformData.openTypeTable(OpenType::HmtxTag);
420 const OpenType::HmtxTable* hmtx = OpenType::validateTable<OpenType::HmtxTable>(buffer, countHmtxEntries);
430 buffer = platformData.openTypeTable(OpenType::VheaTag);
431 const OpenType::VheaTable* vhea = OpenType::validateTable<OpenType::VheaTable>(buffer);
441 buffer = platformData.openTypeTable(OpenType::VORGTag);
442 const OpenType::VORGTable* vorg = OpenType::validateTable<OpenType::VORGTable>(buffer);
451 const OpenType::VORGTable::VertOriginYMetrics& metrics = vorg->vertOriginYMetrics[i];
458 buffer = platformData.openTypeTable(OpenType::VmtxTag);
459 const OpenType::VmtxTable* vmtx = OpenType::validateTable<OpenType::VmtxTable>(buffer, countVmtxEntries);
473 size_t sizeExtra = buffer->size() - sizeof(OpenType::VmtxTable::Entry) * countVmtxEntries;
474 if (sizeExtra % sizeof(OpenType::Int16)) {
478 size_t countTopSideBearings = countVmtxEntries + sizeExtra / sizeof(OpenType::Int16);
484 const OpenType::Int16* pTopSideBearingsExtra = reinterpret_cast<const OpenType::Int16*>(&vmtx->entries[countVmtxEntries]);
492 RefPtr<SharedBuffer> buffer = platformData.openTypeTable(OpenType::GSUBTag);
493 const OpenType::GSUBTable* gsub = OpenType::validateTable<OpenType::GSUBTable>(buffer);