Home
last modified time | relevance | path

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

/external/skia/src/ports/
DSkTypeface_win_dw.cpp509 AutoTDWriteTable<SkOTTableOS2> os2Table(fDWriteFontFace.get()); in onGetAdvancedMetrics() local
510 if (!headTable.fExists || !postTable.fExists || !hheaTable.fExists || !os2Table.fExists) { in onGetAdvancedMetrics()
514 SkOTUtils::SetAdvancedTypefaceFlags(os2Table->version.v4.fsType, info.get()); in onGetAdvancedMetrics()
532 if (os2Table->version.v0.fsSelection.field.Italic) { in onGetAdvancedMetrics()
537 SerifStyle serifStyle = os2Table->version.v0.panose.data.textAndDisplay.bSerifStyle; in onGetAdvancedMetrics()
538 if (SkPanose::FamilyType::TextAndDisplay == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedMetrics()
552 } else if (SkPanose::FamilyType::Script == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedMetrics()
DSkFontHost_FreeType.cpp647 TT_OS2* os2Table; in onGetAdvancedMetrics() local
656 } else if (((os2Table = (TT_OS2*)FT_Get_Sfnt_Table(face, ft_sfnt_os2)) != nullptr) && in onGetAdvancedMetrics()
658 os2Table->version != 0xFFFF && in onGetAdvancedMetrics()
659 os2Table->version >= 2) in onGetAdvancedMetrics()
661 info->fCapHeight = os2Table->sCapHeight; in onGetAdvancedMetrics()
/external/skqp/src/ports/
DSkTypeface_win_dw.cpp517 AutoTDWriteTable<SkOTTableOS2> os2Table(fDWriteFontFace.get()); in onGetAdvancedMetrics() local
518 if (!headTable.fExists || !postTable.fExists || !hheaTable.fExists || !os2Table.fExists) { in onGetAdvancedMetrics()
522 SkOTUtils::SetAdvancedTypefaceFlags(os2Table->version.v4.fsType, info.get()); in onGetAdvancedMetrics()
540 if (os2Table->version.v0.fsSelection.field.Italic) { in onGetAdvancedMetrics()
545 SerifStyle serifStyle = os2Table->version.v0.panose.data.textAndDisplay.bSerifStyle; in onGetAdvancedMetrics()
546 if (SkPanose::FamilyType::TextAndDisplay == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedMetrics()
560 } else if (SkPanose::FamilyType::Script == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedMetrics()
DSkFontHost_FreeType.cpp611 TT_OS2* os2Table; in onGetAdvancedMetrics() local
620 } else if (((os2Table = (TT_OS2*)FT_Get_Sfnt_Table(face, ft_sfnt_os2)) != nullptr) && in onGetAdvancedMetrics()
622 os2Table->version != 0xFFFF && in onGetAdvancedMetrics()
623 os2Table->version >= 2) in onGetAdvancedMetrics()
625 info->fCapHeight = os2Table->sCapHeight; in onGetAdvancedMetrics()
/external/skia/src/utils/mac/
DSkCTFont.cpp350 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(data->writable_data(), in SkCTFontGetDataFontWeightMapping() local
354 os2Table->usWeightClass.value = SkEndian_SwapBE16(i * 100); in SkCTFontGetDataFontWeightMapping()
/external/skqp/tests/
DTypefaceTest.cpp49 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(sfntHeader, os2TableOffset); in TypefaceStyle_test() local
50 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()
52 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()
/external/skia/tests/
DTypefaceTest.cpp53 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(sfntHeader, os2TableOffset); in TypefaceStyle_test() local
54 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()
56 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()