Home
last modified time | relevance | path

Searched refs:glyf (Results 1 – 25 of 49) sorted by relevance

12

/external/harfbuzz_ng/src/
Dhb-subset-glyf.cc33 _calculate_glyf_and_loca_prime_size (const OT::glyf::accelerator_t &glyf, in _calculate_glyf_and_loca_prime_size() argument
56 if (unlikely (!(glyf.get_offsets (next_glyph, &start_offset, &end_offset) && in _calculate_glyf_and_loca_prime_size()
57 glyf.remove_padding (start_offset, &end_offset)))) in _calculate_glyf_and_loca_prime_size()
62 if (end_offset - start_offset < OT::glyf::GlyphHeader::static_size) in _calculate_glyf_and_loca_prime_size()
67 if (unlikely (!glyf.get_instruction_offsets (start_offset, end_offset, in _calculate_glyf_and_loca_prime_size()
124 OT::glyf::CompositeGlyphHeader::Iterator iterator; in _update_components()
125 if (OT::glyf::CompositeGlyphHeader::get_iterator (glyph_start, in _update_components()
136 ((OT::glyf::CompositeGlyphHeader *) iterator.current)->glyphIndex.set (new_gid); in _update_components()
144 OT::glyf::CompositeGlyphHeader::Iterator composite_it; in _remove_composite_instruction_flag()
145 …if (unlikely (!OT::glyf::CompositeGlyphHeader::get_iterator (glyf_prime, length, &composite_it))) … in _remove_composite_instruction_flag()
[all …]
Dhb-subset-plan.cc36 _add_gid_and_children (const OT::glyf::accelerator_t &glyf, in _add_gid_and_children() argument
46 OT::glyf::CompositeGlyphHeader::Iterator composite; in _add_gid_and_children()
47 if (glyf.get_composite (gid, &composite)) in _add_gid_and_children()
51 _add_gid_and_children (glyf, (hb_codepoint_t) composite.current->glyphIndex, gids_to_retain); in _add_gid_and_children()
105 OT::glyf::accelerator_t glyf; in _populate_gids_to_retain() local
108 glyf.init (face); in _populate_gids_to_retain()
138 _add_gid_and_children (glyf, gid, all_gids_to_retain); in _populate_gids_to_retain()
152 glyf.fini (); in _populate_gids_to_retain()
Dhb-ot-glyf-table.hh46 friend struct glyf;
72 struct glyf struct
242 glyf_table = hb_sanitize_context_t ().reference_table<glyf> (face); in init()
466 hb_blob_ptr_t<glyf> glyf_table;
477 struct glyf_accelerator_t : glyf::accelerator_t {};
DMakefile.sources64 hb-ot-glyf-table.hh \
238 hb-subset-glyf.cc \
239 hb-subset-glyf.hh \
240 hb-subset-glyf.hh \
Dhb-ot-font.cc160 if (ot_face->glyf->get_extents (glyph, &extents)) in hb_ot_get_glyph_v_origin()
185 ret = ot_face->glyf->get_extents (glyph, extents); in hb_ot_get_glyph_extents()
Dhb-ot-face.hh49 HB_OT_ACCELERATOR(OT, glyf) \
/external/sfntly/cpp/src/test/
Dverify_glyf.cc39 GlyphPtr glyf; in VerifyGLYF() local
40 glyf.Attach(glyf_table->GetGlyph(GLYPH33_OFFSET, GLYPH33_LENGTH)); in VerifyGLYF()
41 if (glyf == NULL) { in VerifyGLYF()
45 EXPECT_EQ(glyf->XMin(), GLYPH33_XMIN); in VerifyGLYF()
46 EXPECT_EQ(glyf->YMin(), GLYPH33_YMIN); in VerifyGLYF()
47 EXPECT_EQ(glyf->XMax(), GLYPH33_XMAX); in VerifyGLYF()
48 EXPECT_EQ(glyf->YMax(), GLYPH33_YMAX); in VerifyGLYF()
Dtest_data.cc41 Tag::glyf, Tag::head, Tag::hhea, Tag::hmtx, Tag::kern,
48 Tag::glyf, Tag::hdmx, Tag::head, Tag::hhea, Tag::hmtx,
Dserialization_test.cc76 } else if (TTF_KNOWN_TAGS[i] == Tag::glyf) { in TestSerialization()
/external/fonttools/Snippets/
Dotf2ttf.py49 ttFont["glyf"] = glyf = newTable("glyf")
50 glyf.glyphOrder = glyphOrder
51 glyf.glyphs = glyphs_to_quadratic(ttFont.getGlyphSet(), **kwargs)
53 glyf.compile(ttFont)
66 for g in glyf.glyphs.values())
/external/fonttools/Tests/ttLib/tables/
D_g_v_a_r_test.py140 glyf, fvar, gvar = newTable("glyf"), newTable("fvar"), newTable("gvar")
142 font.tables = {"glyf": glyf, "gvar": gvar, "fvar": fvar}
143 glyf.glyphs = {glyph: Glyph() for glyph in glyphs}
144 glyf.glyphs["I"].coordinates = [(10, 10), (10, 20), (20, 20), (20, 10)]
/external/fonttools/Lib/fontTools/ttLib/tables/
Dtable_API_readme.txt25 >>> ttLib.tagToIdentifier("glyf")
38 'glyf'
41 Eg. the 'glyf' table converter lives in a Python file called:
53 >>> ttLib.getTableModule('glyf')
55 >>> ttLib.getTableClass('glyf')
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py183 glyf = varfont['glyf']
188 glyf[name].getCompositeMaxpValues(glyf).maxComponentDepth
189 if glyf[name].isComposite() else 0,
207 glyf = None
307 if glyf:
308 for glyph in glyf.glyphs.values():
316 for glyph_name in glyf.keys():
317 glyph = glyf[glyph_name]
D__init__.py214 glyf = font["glyf"]
215 glyph = glyf[glyphName]
218 glyph.recalcBounds(glyf)
251 glyf = font["glyf"]
252 if glyphName not in glyf.glyphs: return None
253 glyph = glyf[glyphName]
258 allData = glyph.getCoordinates(glyf)
271 glyf = font["glyf"]
272 assert glyphName in glyf.glyphs
273 glyph = glyf[glyphName]
[all …]
/external/sfntly/cpp/src/sfntly/tools/subsetter/
Dglyph_table_subsetter.cc27 const int32_t kGlyphTableSubsetterTags[2] = {Tag::glyf, Tag::loca};
46 GlyphTablePtr glyph_table = down_cast<GlyphTable*>(font->GetTable(Tag::glyf)); in Subset()
57 (font_builder->NewTableBuilder(Tag::glyf)); in Subset()
/external/sfntly/cpp/src/sfntly/
Dtag.cc37 const int32_t Tag::glyf = TAG('g', 'l', 'y', 'f'); member in sfntly::Tag
100 Tag::glyf,
Dtag.h45 static const int32_t glyf; member
/external/skia/src/sfnt/
DSkOTTable_glyf.h31 Iterator(const SkOTTableGlyph& glyf, in Iterator()
34 : fGlyf(glyf) in Iterator()
/external/skqp/src/sfnt/
DSkOTTable_glyf.h31 Iterator(const SkOTTableGlyph& glyf, in Iterator()
34 : fGlyf(glyf) in Iterator()
/external/sfntly/cpp/src/sample/chromium/
Dsubsetter_impl.cc272 down_cast<GlyphTable::Builder*>(font_builder->NewTableBuilder(Tag::glyf)); in SetupGlyfBuilders()
704 down_cast<GlyphTable*>(font_->GetTable(Tag::glyf)); in SubsetFont()
781 Font* SubsetterImpl::Subset(const IntegerSet& glyph_ids, GlyphTable* glyf, in Subset() argument
788 Tag::prep, Tag::glyf, Tag::hmtx, Tag::fpgm, Tag::EBDT, in Subset()
799 if (SetupGlyfBuilders(font_builder, glyf, loca, glyph_ids)) { in Subset()
800 remove_tags.insert(Tag::glyf); in Subset()
Dsubsetter_impl.h69 GlyphTable* glyf, LocaTable* loca);
/external/sfntly/cpp/src/sample/subtly/
Dfont_assembler.cc149 (font_builder_->NewTableBuilder(Tag::glyf)); in AssembleGlyphAndLocaTables()
196 (font_info_->GetTable(font_id, Tag::glyf)); in AssembleGlyphAndLocaTables()
/external/sfntly/cpp/src/sfntly/table/
Dtable.cc113 }*/ else if (tag == Tag::glyf) { in GetBuilder()
/external/fonttools/Tests/subset/
Dsubset_test.py516 glyf = subsetfont["glyf"]
517 self.assertGreater(glyf["A"].numberOfContours, 0)
518 self.assertEqual(glyf["B"].numberOfContours, 0)
/external/fonttools/
DNEWS.rst4 - [ttLib/glyf] Raise more specific error when encountering recursive
15 - [mutator] Set ``OVERLAP_SIMPLE`` and ``OVERLAP_COMPOUND`` glyf flags by
222 glyf table's contour points in the TTX dump. This is used in some
311 - [varLib] Avoid attempting to build ``cvar`` table when ``glyf`` table is not
318 - [glyf] Ensure ``GlyphCoordinates`` never overflow signed shorts (#1230).
395 - [ttx] Added new ``-g`` option to dump glyphs from the ``glyf`` table
740 - [glyf] In ``GlyphCoordintes`` class, added ``__bool__`` / ``__nonzero__``
848 - Assembly code in the fpgm, prep, and glyf tables is now indented in
1130 to as part of the glyf table (obviously needed for CFF-OTF's).
1134 - When writing TT glyf data, align glyphs on 4-byte boundaries. This
[all …]

12