Home
last modified time | relevance | path

Searched refs:os2Table (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/ports/
DSkTypeface_win_dw.cpp372 AutoTDWriteTable<SkOTTableOS2> os2Table(fDWriteFontFace.get()); in onGetAdvancedTypefaceMetrics() local
373 if (!headTable.fExists || !postTable.fExists || !hheaTable.fExists || !os2Table.fExists) { in onGetAdvancedTypefaceMetrics()
386 if (os2Table->version.v0.fsSelection.field.Italic) { in onGetAdvancedTypefaceMetrics()
391 SerifStyle serifStyle = os2Table->version.v0.panose.data.textAndDisplay.bSerifStyle; in onGetAdvancedTypefaceMetrics()
392 if (SkPanose::FamilyType::TextAndDisplay == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedTypefaceMetrics()
406 } else if (SkPanose::FamilyType::Script == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedTypefaceMetrics()
DSkFontHost_FreeType.cpp617 TT_OS2* os2Table; in onGetAdvancedTypefaceMetrics() local
626 } else if (((os2Table = (TT_OS2*)FT_Get_Sfnt_Table(face, ft_sfnt_os2)) != nullptr) && in onGetAdvancedTypefaceMetrics()
628 os2Table->version != 0xFFFF && in onGetAdvancedTypefaceMetrics()
629 os2Table->version >= 2) in onGetAdvancedTypefaceMetrics()
631 info->fCapHeight = os2Table->sCapHeight; in onGetAdvancedTypefaceMetrics()
/external/skia/tests/
DTypefaceTest.cpp46 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(sfntHeader, os2TableOffset); in TypefaceStyle_test() local
47 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()
49 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()