Searched refs:os2Table (Results 1 – 7 of 7) sorted by relevance
509 AutoTDWriteTable<SkOTTableOS2> os2Table(fDWriteFontFace.get()); in onGetAdvancedMetrics() local510 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()
647 TT_OS2* os2Table; in onGetAdvancedMetrics() local656 } 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()
517 AutoTDWriteTable<SkOTTableOS2> os2Table(fDWriteFontFace.get()); in onGetAdvancedMetrics() local518 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()
611 TT_OS2* os2Table; in onGetAdvancedMetrics() local620 } 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()
350 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(data->writable_data(), in SkCTFontGetDataFontWeightMapping() local354 os2Table->usWeightClass.value = SkEndian_SwapBE16(i * 100); in SkCTFontGetDataFontWeightMapping()
49 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(sfntHeader, os2TableOffset); in TypefaceStyle_test() local50 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()52 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()
53 SkOTTableOS2_V0* os2Table = SkTAddOffset<SkOTTableOS2_V0>(sfntHeader, os2TableOffset); in TypefaceStyle_test() local54 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()56 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()