/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/ |
H A D | LocaTable.java | 31 * A Loca table - 'loca'. 73 return this.loca(glyphId); in glyphOffset() 86 return this.loca(glyphId + 1) - this.loca(glyphId); in glyphLength() 91 * of glyphs for this table since the last loca position is used to indicate 101 * Get the value from the loca table for the index specified. These are the 106 * @param index the loca table index 107 * @return the loca table value 109 public int loca(int index) { in loca() method in LocaTable 120 * Get an iterator over the loca value 170 private List<Integer> loca; global() field in LocaTable.Builder 391 public int loca(int index) { loca() method in LocaTable.Builder [all...] |
H A D | GlyphTable.java | 78 private List<Integer> loca; field in GlyphTable.Builder 113 public void setLoca(List<Integer> loca) { in setLoca() argument 114 this.loca = new ArrayList<Integer>(loca); in setLoca() 120 * Generate a loca table list from the current state of the glyph table 123 * @return a list of loca information for the glyphs 141 private void initialize(ReadableFontData data, List<Integer> loca) { in initialize() argument 146 int lastLocaValue = loca.get(0); in initialize() 147 for (int i = 1; i < loca.size(); i++) { in initialize() 148 locaValue = loca in initialize() [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/bitmap/ |
H A D | IndexSubTableFormat3.java | 47 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 48 return this.loca(loca); in glyphStartOffset() 53 int loca = this.checkGlyphRange(glyphId); in glyphLength() 54 return this.loca(loca + 1) - this.loca(loca); in glyphLength() 57 private int loca(int loca) { in loca() argument [all...] |
H A D | IndexSubTableFormat1.java | 47 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 48 return this.loca(loca); in glyphStartOffset() 53 int loca = this.checkGlyphRange(glyphId); in glyphLength() 54 return this.loca(loca + 1) - this.loca(loca); in glyphLength() 57 private int loca(int loca) { in loca() argument [all...] |
H A D | IndexSubTableFormat5.java | 66 int loca = in glyphStartOffset() 69 if (loca == -1) { in glyphStartOffset() 70 return loca; in glyphStartOffset() 72 return loca * this.imageSize; in glyphStartOffset() 153 int loca = Collections.binarySearch(glyphArray, glyphId); in glyphStartOffset() 154 if (loca == -1) { in glyphStartOffset() 157 return loca * this.imageSize(); in glyphStartOffset()
|
H A D | IndexSubTableFormat2.java | 56 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 57 return loca * this.imageSize; in glyphStartOffset() 111 int loca = super.checkGlyphRange(glyphId); in glyphStartOffset() 112 return loca * this.imageSize(); in glyphStartOffset()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ |
H A D | index_sub_table_format1.cc | 43 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 44 if (loca == -1) { in GlyphStartOffset() 47 return Loca(loca); in GlyphStartOffset() 51 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() local 52 if (loca == -1) { in GlyphLength() 55 return Loca(loca + 1) - Loca(loca); in GlyphLength() 64 int32_t IndexSubTableFormat1::Loca(int32_t loca) { in Loca() argument 67 loca * DataSize::kULONG); in Loca() 81 int32_t loca in GlyphLength() local 90 int32_t loca = CheckGlyphRange(glyph_id); GlyphStartOffset() local [all...] |
H A D | index_sub_table_format3.cc | 33 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 34 if (loca != -1) { in GlyphStartOffset() 35 return Loca(loca); in GlyphStartOffset() 41 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() local 42 if (loca != -1) { in GlyphLength() 64 int32_t IndexSubTableFormat3::Loca(int32_t loca) { in Loca() argument 67 loca * DataSize::kUSHORT); in Loca() 82 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 83 if (loca == -1) { in GlyphStartOffset() 86 return GetOffsetArray()->at(loca); in GlyphStartOffset() 90 int32_t loca = CheckGlyphRange(glyph_id); GlyphLength() local [all...] |
H A D | index_sub_table_format2.cc | 46 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 47 if (loca == -1) { in GlyphStartOffset() 50 return loca * image_size_; in GlyphStartOffset() 79 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 80 if (loca == -1) { in GlyphStartOffset() 83 return loca * ImageSize(); in GlyphStartOffset() 87 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() local 88 if (loca == -1) { in GlyphLength()
|
H A D | index_sub_table_format4.cc | 33 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 34 if (loca == -1) { in GlyphStartOffset() 48 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() local 49 if (loca == -1) { in GlyphLength() 120 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() local 121 if (loca == -1) { in GlyphLength() 133 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() local 134 if (loca == -1) { in GlyphStartOffset()
|
H A D | index_sub_table_format5.cc | 39 int32_t loca = ReadFontData()->SearchUShort( in GlyphStartOffset() local 44 if (loca == -1) { in GlyphStartOffset() 45 return loca; in GlyphStartOffset() 47 return loca * ImageSize(); in GlyphStartOffset()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | verify_loca.cc | 41 LocaTablePtr loca = down_cast<LocaTable*>(table); in VerifyLOCA() local 42 if (loca == NULL) { in VerifyLOCA() 46 EXPECT_EQ(loca->NumLocas(), LOCA_NUM_LOCAS); in VerifyLOCA() 47 EXPECT_EQ(loca->num_glyphs(), LOCA_NUM_LOCAS - 1); in VerifyLOCA() 50 EXPECT_EQ(loca->GlyphOffset(i), LOCAS[i]); in VerifyLOCA() 51 EXPECT_EQ(loca->GlyphLength(i), LOCAS[i + 1] - LOCAS[i]); in VerifyLOCA()
|
H A D | test_data.cc | 42 Tag::loca, Tag::maxp, Tag::morx, Tag::name, Tag::post, 49 Tag::loca, Tag::maxp, Tag::name, Tag::post, Tag::prep };
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/ |
H A D | GlyphEditingTests.java | 60 LocaTable.Builder locaBuilder = (LocaTable.Builder) fontBuilder.getTableBuilder(Tag.loca); in testEditLocaTable() 76 LocaTable loca = font.getTable(Tag.loca); in testEditLocaTable() 77 assertEquals(locaSlots - 1, loca.numGlyphs()); in testEditLocaTable() 78 for (int glyphId = 0; glyphId < loca.numGlyphs(); glyphId++) { in testEditLocaTable() 79 assertEquals(glyphId * 6, loca.glyphOffset(glyphId)); in testEditLocaTable() 85 LocaTable.Builder locaTableBuilder = (LocaTable.Builder) fontBuilder.getTableBuilder(Tag.loca); in testRemoveOneGlyph() 103 int lastLoca = locaTableBuilder.loca(numLocas - 1); in testRemoveOneGlyph() 120 LocaTable locaTable = font.getTable(Tag.loca); in testRemoveOneGlyph() 143 "locaTable.loca(locaTabl in testRemoveOneGlyph() [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/ |
H A D | SFLint.java | 120 LocaTable loca = (LocaTable) font.getTable(Tag.loca); in lintWindowsClipping() 121 int nGlyphs = loca.numGlyphs(); in lintWindowsClipping() 128 int offset = loca.glyphOffset(glyphId); in lintWindowsClipping() 129 int length = loca.glyphLength(glyphId); in lintWindowsClipping() 198 LocaTable loca = (LocaTable) font.getTable(Tag.loca); in lintAllGlyphs() 200 int nGlyphs = loca.numGlyphs(); in lintAllGlyphs() 202 int offset = loca.glyphOffset(glyphId); in lintAllGlyphs() 203 int length = loca in lintAllGlyphs() [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/chromium/ |
H A D | subsetter_impl.cc | 239 down_cast<LocaTable::Builder*>(font_builder->NewTableBuilder(Tag::loca)); in SetupGlyfBuilders() 245 // Extract glyphs and setup loca list. in SetupGlyfBuilders() 270 // Configure loca list. in SetupGlyfBuilders() 399 ConstructIndexFormat4(IndexSubTable::Builder* b, const BitmapGlyphInfoMap& loca, in ConstructIndexFormat4() argument 409 BitmapGlyphInfoMap::const_iterator i = loca.lower_bound(lower_bound); in ConstructIndexFormat4() 410 BitmapGlyphInfoMap::const_iterator end = loca.end(); in ConstructIndexFormat4() 437 ConstructIndexFormat5(IndexSubTable::Builder* b, const BitmapGlyphInfoMap& loca, in ConstructIndexFormat5() argument 462 BitmapGlyphInfoMap::const_iterator i = loca.lower_bound(lower_bound); in ConstructIndexFormat5() 463 BitmapGlyphInfoMap::const_iterator end = loca.end(); in ConstructIndexFormat5() 487 const BitmapGlyphInfoMap& loca, in SubsetIndexSubTable() 486 SubsetIndexSubTable(IndexSubTable::Builder* builder, const BitmapGlyphInfoMap& loca, int32_t* image_data_offset) SubsetIndexSubTable() argument 749 Subset(const IntegerSet& glyph_ids, GlyphTable* glyf, LocaTable* loca) Subset() argument [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/ |
H A D | GlyphTableStripper.java | 35 super(Tag.glyf, Tag.loca); in GlyphTableStripper() 43 LocaTable locaTable = font.getTable(Tag.loca); in subset() 51 LocaTable.Builder locaTableBuilder = (LocaTable.Builder) fontBuilder.newTableBuilder(Tag.loca); in subset()
|
H A D | GlyphTableSubsetter.java | 44 super(Tag.glyf, Tag.loca, Tag.maxp); in GlyphTableSubsetter() 59 LocaTable locaTable = font.getTable(Tag.loca); in subset() 66 LocaTable.Builder locaTableBuilder = (LocaTable.Builder) fontBuilder.newTableBuilder(Tag.loca); in subset()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/ |
H A D | glyph_table_subsetter.cc | 27 const int32_t kGlyphTableSubsetterTags[2] = {Tag::glyf, Tag::loca}; 47 LocaTablePtr loca_table = down_cast<LocaTable*>(font->GetTable(Tag::loca)); in Subset() 60 (font_builder->NewTableBuilder(Tag::loca)); in Subset()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/ |
H A D | BasicSubsetTests.java | 52 LocaTable srcLocaTable = srcFont.getTable(Tag.loca); in testSubsetGlyphs() 57 srcLoca.add(srcLocaTable.loca(i)); in testSubsetGlyphs() 95 LocaTable dstLocaTable = dstFont.getTable(Tag.loca); in testSubsetGlyphs() 100 dstLoca.add(dstLocaTable.loca(i)); in testSubsetGlyphs()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subtly/ |
H A D | font_assembler.cc | 146 (font_builder_->NewTableBuilder(Tag::loca)); in AssembleGlyphAndLocaTables() 159 down_cast<LocaTable*>(font_info_->GetTable(it->first, Tag::loca)); in AssembleGlyphAndLocaTables() 168 // font, their loca tables should all have the same sizes. in AssembleGlyphAndLocaTables() 172 (font_info_->GetTable(font_info_->fonts()->begin()->first, Tag::loca)); in AssembleGlyphAndLocaTables() 189 (font_info_->GetTable(font_id, Tag::loca)); in AssembleGlyphAndLocaTables() 222 // If there are missing glyph ids, their loca entries must all point in AssembleGlyphAndLocaTables()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
H A D | GlyfEncoder.java | 59 LocaTable loca = sourceFont.getTable(Tag.loca); in encode() 60 int nGlyphs = loca.numGlyphs(); in encode() 64 int sourceOffset = loca.glyphOffset(glyphId); in encode() 65 int length = loca.glyphLength(glyphId); in encode()
|
H A D | MtxWriter.java | 43 result.add(Tag.loca); in createRemoveTables() 63 fontBuilder.addTable(Tag.loca, null); in compress()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/ |
H A D | glyph_table.cc | 72 void GlyphTable::Builder::SetLoca(const std::vector<int32_t>& loca) { in SetLoca() argument 73 loca_ = loca; in SetLoca() 161 const std::vector<int32_t>& loca) { in Initialize() 167 int32_t last_loca_value = loca[0]; in Initialize() 168 for (size_t i = 1; i < loca.size(); ++i) { in Initialize() 169 loca_value = loca[i]; in Initialize() 160 Initialize(ReadableFontData* data, const std::vector<int32_t>& loca) Initialize() argument
|
/third_party/skia/src/sfnt/ |
H A D | SkOTTable_glyf.h | 32 const SkOTTableIndexToLocation& loca, in Iterator() 37 { fLocaPtr.shortOffset = reinterpret_cast<const SK_OT_USHORT*>(&loca); } in Iterator() 31 Iterator(const SkOTTableGlyph& glyf, const SkOTTableIndexToLocation& loca, SkOTTableHead::IndexToLocFormat locaFormat) Iterator() argument
|