Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DEOTWriter.java79 OS2Table os2Table = font.getTable(Tag.OS_2); in convert() local
86 index += writeFontPANOSE(index, os2Table, writableFontData); // FontPANOSE in convert()
88 index += writableFontData.writeByte(index, (byte) (os2Table.fsSelectionAsInt() & 1)); // Italic in convert()
89 index += writableFontData.writeULongLE(index, os2Table.usWeightClass()); // Weight in convert()
90 index += writableFontData.writeUShortLE(index, (short) os2Table.fsTypeAsInt()); // fsType in convert()
92 index += writeUnicodeRanges(index, os2Table, writableFontData); // UnicodeRange{1, 2, 3, 4} in convert()
93 index += writeCodePages(index, os2Table, writableFontData); // CodePageRange{1, 2} in convert()
143 private int writeFontPANOSE(int index, OS2Table os2Table, WritableFontData writableFontData) { in writeFontPANOSE() argument
144 byte[] fontPANOSE = os2Table.panose(); in writeFontPANOSE()
156 private int writeUnicodeRanges(int start, OS2Table os2Table, WritableFontData writableFontData) { in writeUnicodeRanges() argument
[all …]
/third_party/skia/src/ports/
DSkTypeface_win_dw.cpp540 AutoTDWriteTable<SkOTTableOS2> os2Table(fDWriteFontFace.get()); in onGetAdvancedMetrics() local
541 if (!headTable.fExists || !postTable.fExists || !hheaTable.fExists || !os2Table.fExists) { in onGetAdvancedMetrics()
545 SkOTUtils::SetAdvancedTypefaceFlags(os2Table->version.v4.fsType, info.get()); in onGetAdvancedMetrics()
563 if (os2Table->version.v0.fsSelection.field.Italic) { in onGetAdvancedMetrics()
568 SerifStyle serifStyle = os2Table->version.v0.panose.data.textAndDisplay.bSerifStyle; in onGetAdvancedMetrics()
569 if (SkPanose::FamilyType::TextAndDisplay == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedMetrics()
583 } else if (SkPanose::FamilyType::Script == os2Table->version.v0.panose.bFamilyType) { in onGetAdvancedMetrics()
DSkFontHost_FreeType.cpp478 TT_OS2* os2Table; in onGetAdvancedMetrics() local
487 } else if (((os2Table = (TT_OS2*)FT_Get_Sfnt_Table(face, ft_sfnt_os2)) != nullptr) && in onGetAdvancedMetrics()
489 os2Table->version != 0xFFFF && in onGetAdvancedMetrics()
490 os2Table->version >= 2) in onGetAdvancedMetrics()
492 info->fCapHeight = os2Table->sCapHeight; in onGetAdvancedMetrics()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java89 OS2Table os2Table = (OS2Table) FontUtils.getTable(font, Tag.OS_2); in listFontMetrics() local
106 new String[] { "OS/2 Windows ascender", String.format("%d", os2Table.usWinAscent()) })); in listFontMetrics()
108 new String[] { "OS/2 Windows descender", String.format("%d", os2Table.usWinDescent()) })); in listFontMetrics()
110 "OS/2 typographic ascender", String.format("%d", os2Table.sTypoAscender()) })); in listFontMetrics()
112 "OS/2 typographic ascender", String.format("%d", os2Table.sTypoDescender()) })); in listFontMetrics()
114 "OS/2 typographic line gap", String.format("%d", os2Table.sTypoLineGap()) })); in listFontMetrics()
/third_party/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()
/third_party/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()