Home
last modified time | relevance | path

Searched refs:hheaTable (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4c/source/test/letest/
DPortableFontInstance.cpp109 const HHEATable *hheaTable = NULL; in PortableFontInstance() local
161 hheaTable = (HHEATable *) readFontTable(hheaTag); in PortableFontInstance()
163 if (hheaTable == NULL) { in PortableFontInstance()
169 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance()
170 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance()
171 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance()
173 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance()
175 freeFontTable((void *) hheaTable); in PortableFontInstance()
DFontObject.cpp216 HHEATable *hheaTable; in getGlyphAdvance() local
222 hheaTable = (HHEATable *) readTable(hheaTag, &length); in getGlyphAdvance()
223 numOfLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in getGlyphAdvance()
224 deleteTable(hheaTable); in getGlyphAdvance()
/external/icu/icu4c/source/test/perf/leperf/
DPortableFontInstance.cpp112 const HHEATable *hheaTable = NULL; in PortableFontInstance() local
164 hheaTable = (HHEATable *) readFontTable(hheaTag); in PortableFontInstance()
166 if (hheaTable == NULL) { in PortableFontInstance()
172 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in PortableFontInstance()
173 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in PortableFontInstance()
174 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in PortableFontInstance()
176 fNumLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in PortableFontInstance()
178 freeFontTable((void *) hheaTable); in PortableFontInstance()
DFontObject.cpp220 HHEATable *hheaTable; in getGlyphAdvance() local
226 hheaTable = (HHEATable *) readTable(hheaTag, &length); in getGlyphAdvance()
227 numOfLongHorMetrics = SWAPW(hheaTable->numOfLongHorMetrics); in getGlyphAdvance()
228 deleteTable(hheaTable); in getGlyphAdvance()
/external/icu/icu4c/source/samples/layout/
DGDIFontInstance.cpp266 const HHEATable *hheaTable = NULL; in GDIFontInstance() local
279 hheaTable = (HHEATable *) readFontTable(LE_HHEA_TABLE_TAG); in GDIFontInstance()
281 if (hheaTable == NULL) { in GDIFontInstance()
286 fAscent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->ascent)); in GDIFontInstance()
287 fDescent = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->descent)); in GDIFontInstance()
288 fLeading = (le_int32) yUnitsToPoints((float) SWAPW(hheaTable->lineGap)); in GDIFontInstance()
290 freeFontTable((const void *) hheaTable); in GDIFontInstance()
/external/skia/src/ports/
DSkTypeface_win_dw.cpp516 AutoTDWriteTable<SkOTTableHorizontalHeader> hheaTable(fDWriteFontFace.get()); in onGetAdvancedMetrics() local
518 if (!headTable.fExists || !postTable.fExists || !hheaTable.fExists || !os2Table.fExists) { in onGetAdvancedMetrics()
534 (1 == SkEndian_SwapBE16(hheaTable->numberOfHMetrics))); in onGetAdvancedMetrics()
/external/skqp/src/ports/
DSkTypeface_win_dw.cpp516 AutoTDWriteTable<SkOTTableHorizontalHeader> hheaTable(fDWriteFontFace.get()); in onGetAdvancedMetrics() local
518 if (!headTable.fExists || !postTable.fExists || !hheaTable.fExists || !os2Table.fExists) { in onGetAdvancedMetrics()
534 (1 == SkEndian_SwapBE16(hheaTable->numberOfHMetrics))); in onGetAdvancedMetrics()