/external/chromium_org/third_party/brotli/src/woff2/ |
D | font.cc | 44 !file.ReadU16(&font->num_tables) || in ReadFont() 50 for (uint16_t i = 0; i < font->num_tables; ++i) { in ReadFont() 72 uint32_t last_offset = 12UL + 16UL * font->num_tables; in ReadFont() 83 size_t max_offset = 12ULL + 16ULL * font.num_tables; in FontFileSize() 94 if (dst_size < 12ULL + 16ULL * font.num_tables) { in WriteFont() 99 Store16(font.num_tables, &offset, dst); in WriteFont() 100 uint16_t max_pow2 = font.num_tables ? Log2Floor(font.num_tables) : 0; in WriteFont() 102 uint16_t range_shift = (font.num_tables << 4) - search_range; in WriteFont() 182 font->num_tables = font->tables.size(); in RemoveDigitalSignature()
|
D | woff2_dec.cc | 676 size_t num_tables) { in ReadShortDirectory() argument 677 for (size_t i = 0; i < num_tables; ++i) { in ReadShortDirectory() 751 uint16_t num_tables; in ConvertWOFF2ToTTF() local 752 if (!file.ReadU16(&num_tables) || !num_tables) { in ConvertWOFF2ToTTF() 772 std::vector<Table> tables(num_tables); in ConvertWOFF2ToTTF() 774 if (!ReadShortDirectory(&file, &tables, num_tables)) { in ConvertWOFF2ToTTF() 779 kSfntEntrySize * static_cast<uint64_t>(num_tables); in ConvertWOFF2ToTTF() 781 for (uint16_t i = 0; i < num_tables; ++i) { in ConvertWOFF2ToTTF() 810 const uint32_t sfnt_header_and_table_directory_size = 12 + 16 * num_tables; in ConvertWOFF2ToTTF() 818 offset = Store16(result, offset, num_tables); in ConvertWOFF2ToTTF() [all …]
|
D | normalize.cc | 127 uint32_t offset = 12 + 16 * font->num_tables; in NormalizeOffsets() 150 uint16_t max_pow2 = font.num_tables ? Log2Floor(font.num_tables) : 0; in ComputeHeaderChecksum() 152 uint16_t range_shift = (font.num_tables << 4) - search_range; in ComputeHeaderChecksum() 153 checksum += (font.num_tables << 16 | search_range); in ComputeHeaderChecksum()
|
/external/chromium_org/content/browser/renderer_host/pepper/ |
D | pepper_truetype_font_linux.cc | 96 uint16_t num_tables = (num_tables_buf[0] << 8) | num_tables_buf[1]; in GetTableTags() local 101 output_length = num_tables * kTableEntrySize; in GetTableTags() 110 DCHECK(output_length == num_tables * kTableEntrySize); in GetTableTags() 112 tags->resize(num_tables); in GetTableTags() 113 for (uint16_t i = 0; i < num_tables; i++) { in GetTableTags() 122 return num_tables; in GetTableTags()
|
D | pepper_truetype_font_win.cc | 155 DWORD num_tables = (header_buf[4] << 8) | header_buf[5]; in GetTableTags() local 159 DWORD directory_size = num_tables * kDirectoryEntrySize; in GetTableTags() 167 tags->resize(num_tables); in GetTableTags() 168 for (DWORD i = 0; i < num_tables; i++) { in GetTableTags() 177 return num_tables; in GetTableTags()
|
D | pepper_truetype_font_mac.mm | 70 uint16_t num_tables; 351 uint16_t num_tables = base::checked_cast<uint16_t>(table_count); 354 while (search_range < (num_tables >> 1)) { 359 uint16_t range_shift = (num_tables << 4) - search_range; 364 font_header->num_tables = base::HostToNet16(num_tables);
|
/external/chromium_org/content/common/ |
D | child_process_sandbox_support_impl_linux.cc | 151 uint16_t num_tables; in GetFontTable() local 152 ssize_t n = HANDLE_EINTR(pread(fd, &num_tables, sizeof(num_tables), in GetFontTable() 154 if (n != sizeof(num_tables)) in GetFontTable() 157 num_tables = base::NetToHost16(num_tables); in GetFontTable() 161 const size_t directory_size = num_tables * kTableEntrySize; in GetFontTable() 168 for (uint16_t i = 0; i < num_tables; ++i) { in GetFontTable()
|
/external/freetype/src/sfnt/ |
D | ttload.c | 74 limit = entry + face->num_tables; in tt_face_lookup_table() 194 for ( nn = 0; nn < sfnt->num_tables; nn++ ) in check_table_dir() 204 nn, nn == 1 ? "" : "s", sfnt->num_tables )); in check_table_dir() 205 sfnt->num_tables = nn; in check_table_dir() 262 sfnt->num_tables = valid_entries; in check_table_dir() 264 if ( sfnt->num_tables == 0 ) in check_table_dir() 331 FT_FRAME_USHORT( num_tables ), in tt_face_load_font_dir() 352 sfnt.search_range + sfnt.range_shift != sfnt.num_tables << 4 ) in tt_face_load_font_dir() 358 FT_TRACE2(( "-- Number of tables: %10u\n", sfnt.num_tables )); in tt_face_load_font_dir() 374 face->num_tables = sfnt.num_tables; in tt_face_load_font_dir() [all …]
|
D | ttkern.c | 51 FT_UInt nn, num_tables; in tt_face_load_kern() local 81 num_tables = FT_NEXT_USHORT( p ); in tt_face_load_kern() 83 if ( num_tables > 32 ) /* we only support up to 32 sub-tables */ in tt_face_load_kern() 84 num_tables = 32; in tt_face_load_kern() 86 for ( nn = 0; nn < num_tables; nn++ ) in tt_face_load_kern()
|
D | sfobjs.c | 438 FT_FRAME_USHORT( num_tables ), in woff_open_font() 464 woff.num_tables == 0 || in woff_open_font() 465 44 + woff.num_tables * 20UL >= woff.length || in woff_open_font() 466 12 + woff.num_tables * 16UL >= woff.totalSfntSize || in woff_open_font() 485 x = woff.num_tables; in woff_open_font() 495 rangeShift = woff.num_tables * 16 - searchRange; in woff_open_font() 498 WRITE_USHORT( sfnt_header, woff.num_tables ); in woff_open_font() 508 if ( FT_NEW_ARRAY( tables, woff.num_tables ) || in woff_open_font() 509 FT_NEW_ARRAY( indices, woff.num_tables ) ) in woff_open_font() 516 if ( FT_FRAME_ENTER( 20L * woff.num_tables ) ) in woff_open_font() [all …]
|
/external/chromium_org/third_party/freetype/src/sfnt/ |
D | ttload.c | 74 limit = entry + face->num_tables; in tt_face_lookup_table() 194 for ( nn = 0; nn < sfnt->num_tables; nn++ ) in check_table_dir() 204 nn, nn == 1 ? "" : "s", sfnt->num_tables )); in check_table_dir() 205 sfnt->num_tables = nn; in check_table_dir() 265 sfnt->num_tables = valid_entries; in check_table_dir() 267 if ( sfnt->num_tables == 0 ) in check_table_dir() 334 FT_FRAME_USHORT( num_tables ), in tt_face_load_font_dir() 355 sfnt.search_range + sfnt.range_shift != sfnt.num_tables << 4 ) in tt_face_load_font_dir() 361 FT_TRACE2(( "-- Number of tables: %10u\n", sfnt.num_tables )); in tt_face_load_font_dir() 377 face->num_tables = sfnt.num_tables; in tt_face_load_font_dir() [all …]
|
D | ttkern.c | 51 FT_UInt nn, num_tables; in tt_face_load_kern() local 81 num_tables = FT_NEXT_USHORT( p ); in tt_face_load_kern() 83 if ( num_tables > 32 ) /* we only support up to 32 sub-tables */ in tt_face_load_kern() 84 num_tables = 32; in tt_face_load_kern() 86 for ( nn = 0; nn < num_tables; nn++ ) in tt_face_load_kern()
|
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ |
D | ttkern.c | 51 FT_UInt nn, num_tables; in tt_face_load_kern() local 81 num_tables = FT_NEXT_USHORT( p ); in tt_face_load_kern() 83 if ( num_tables > 32 ) /* we only support up to 32 sub-tables */ in tt_face_load_kern() 84 num_tables = 32; in tt_face_load_kern() 86 for ( nn = 0; nn < num_tables; nn++ ) in tt_face_load_kern()
|
D | ttload.c | 90 limit = entry + face->num_tables; in tt_face_lookup_table() 215 for ( nn = 0; nn < sfnt->num_tables; nn++ ) in check_table_dir() 225 nn, nn == 1 ? "" : "s", sfnt->num_tables )); in check_table_dir() 226 sfnt->num_tables = nn; in check_table_dir() 288 sfnt->num_tables = valid_entries; in check_table_dir() 290 if ( sfnt->num_tables == 0 ) in check_table_dir() 357 FT_FRAME_USHORT( num_tables ), in tt_face_load_font_dir() 378 sfnt.search_range + sfnt.range_shift != sfnt.num_tables << 4 ) in tt_face_load_font_dir() 384 FT_TRACE2(( "-- Number of tables: %10u\n", sfnt.num_tables )); in tt_face_load_font_dir() 400 face->num_tables = sfnt.num_tables; in tt_face_load_font_dir() [all …]
|
/external/chromium_org/third_party/ots/src/ |
D | kern.cc | 21 uint16_t num_tables = 0; in ots_kern_parse() local 23 !table.ReadU16(&num_tables)) { in ots_kern_parse() 32 if (num_tables == 0) { in ots_kern_parse() 38 kern->subtables.reserve(num_tables); in ots_kern_parse() 39 for (unsigned i = 0; i < num_tables; ++i) { in ots_kern_parse()
|
D | ots.cc | 177 if (!file.ReadU16(&header->num_tables) || in ProcessTTF() 186 if (header->num_tables >= 4096 || header->num_tables < 1) { in ProcessTTF() 191 while (1u << (max_pow2 + 1) <= header->num_tables) { in ProcessTTF() 212 = 16 * header->num_tables - header->search_range; in ProcessTTF() 221 for (unsigned i = 0; i < header->num_tables; ++i) { in ProcessTTF() 272 if (!file.ReadU16(&header->num_tables) || !header->num_tables) { in ProcessWOFF() 326 uint64_t total_sfnt_size = 12 + 16 * header->num_tables; in ProcessWOFF() 327 for (unsigned i = 0; i < header->num_tables; ++i) { in ProcessWOFF() 424 for (unsigned i = 0; i < header->num_tables; ++i) { in ProcessGeneric() 493 for (unsigned i = 0; i < header->num_tables; ++i) { in ProcessGeneric() [all …]
|
D | woff2.cc | 801 size_t num_tables) { in ReadShortDirectory() argument 802 for (size_t i = 0; i < num_tables; ++i) { in ReadShortDirectory() 887 uint16_t num_tables; in ConvertWOFF2ToTTF() local 888 if (!file.ReadU16(&num_tables) || !num_tables) { in ConvertWOFF2ToTTF() 908 std::vector<Table> tables(num_tables); in ConvertWOFF2ToTTF() 909 if (!ReadShortDirectory(&file, &tables, num_tables)) { in ConvertWOFF2ToTTF() 914 kSfntEntrySize * static_cast<uint64_t>(num_tables); in ConvertWOFF2ToTTF() 916 for (uint16_t i = 0; i < num_tables; ++i) { in ConvertWOFF2ToTTF() 946 const uint32_t sfnt_header_and_table_directory_size = 12 + 16 * num_tables; in ConvertWOFF2ToTTF() 954 offset = Store16(result, offset, num_tables); in ConvertWOFF2ToTTF() [all …]
|
D | cmap.cc | 581 uint16_t num_tables = 0; in ots_cmap_parse() local 583 !table.ReadU16(&num_tables)) { in ots_cmap_parse() 590 if (!num_tables) { in ots_cmap_parse() 597 subtable_headers.reserve(num_tables); in ots_cmap_parse() 598 for (unsigned i = 0; i < num_tables; ++i) { in ots_cmap_parse() 614 for (unsigned i = 0; i < num_tables; ++i) { in ots_cmap_parse() 634 for (unsigned i = 0; i < num_tables; ++i) { in ots_cmap_parse() 670 for (unsigned i = 0; i < num_tables; ++i) { in ots_cmap_parse() 687 for (unsigned i = 0; i < num_tables; ++i) { in ots_cmap_parse() 743 for (unsigned i = 0; i < num_tables; ++i) { in ots_cmap_parse()
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
D | main.cc | 97 int num_tables = font.get_table_count (); in main() local 98 printf (" %d table(s) found in font\n", num_tables); in main() 99 for (int n_table = 0; n_table < num_tables; n_table++) { in main() 101 printf (" Table %2d of %2d: %.4s (0x%08x+0x%08x)\n", n_table, num_tables, in main()
|
/external/harfbuzz_ng/src/ |
D | main.cc | 97 int num_tables = font.get_table_count (); in main() local 98 printf (" %d table(s) found in font\n", num_tables); in main() 99 for (int n_table = 0; n_table < num_tables; n_table++) { in main() 101 printf (" Table %2d of %2d: %.4s (0x%08x+0x%08x)\n", n_table, num_tables, in main()
|
/external/chromium_org/third_party/sfntly/cpp/src/test/ |
D | serialization_test.cc | 53 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerialization() 119 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerializationBitmap()
|
/external/sfntly/cpp/src/test/ |
D | serialization_test.cc | 53 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerialization() 119 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerializationBitmap()
|
/external/chromium_org/ppapi/tests/ |
D | test_truetype_font.cc | 34 uint16_t num_tables; member 337 uint16_t num_tables = ReadBigEndian16(&header.num_tables); in TestGetTable() local 338 std::vector<FontDirectoryEntry> directory(num_tables); in TestGetTable() 339 size_t directory_size = kEntrySize * num_tables; in TestGetTable() 343 for (uint16_t i = 0; i < num_tables; i++) { in TestGetTable()
|
/external/freetype/include/internal/ |
D | tttypes.h | 102 FT_UShort num_tables; member 158 FT_UShort num_tables; member 1260 FT_UShort num_tables; member
|
/external/sfntly/cpp/src/sample/subtly/ |
D | merger_main.cc | 37 if (!font || font->num_tables() == 0) { in CheckLoading()
|