Home
last modified time | relevance | path

Searched refs:varStore (Results 1 – 25 of 28) sorted by relevance

12

/external/fonttools/Tests/varLib/
DvarStore_test.py3 from fontTools.varLib.varStore import OnlineVarStoreBuilder, VarStoreInstancer
57 varStore = builder.finish()
58 mapping = varStore.optimize()
63 varStore.compile(writer, dummyFont)
66 varStore = VarStore()
67 varStore.decompile(reader, dummyFont)
70 instancer = VarStoreInstancer(varStore, fvarAxes)
/external/harfbuzz_ng/src/
Dhb-cff2-interp-cs.hh78 varStore = acc.varStore; in cff2_cs_interp_env_t()
82 do_blend = num_coords && coords && varStore->size; in cff2_cs_interp_env_t()
118 region_count = varStore->varStore.get_region_index_count (get_ivs ()); in process_blend()
124 varStore->varStore.get_region_scalars (get_ivs (), coords, num_coords, in process_blend()
169 const CFF2VariationStore *varStore; member
Dhb-ot-cff2-table.hh118 …return_trace (likely (c->check_struct (this)) && c->check_range (&varStore, size) && varStore.sani… in sanitize()
121 bool serialize (hb_serialize_context_t *c, const CFF2VariationStore *varStore) in serialize()
124 unsigned int size_ = varStore->get_size (); in serialize()
127 hb_memcpy (dest, varStore, size_); in serialize()
134 VariationStore varStore; member
423 varStore = &StructAtOffsetOrNull<CFF2VariationStore> (cff2, topDict.vstoreOffset); in accelerator_templ_t()
428 if (((varStore != &Null (CFF2VariationStore)) && unlikely (!varStore->sanitize (&sc))) || in accelerator_templ_t()
500 const CFF2VariationStore *varStore = nullptr; member
Dhb-ot-var-common.hh225 VarStoreInstancer (const VariationStore &varStore, in VarStoreInstancer()
228 varStore (varStore), varIdxMap (varIdxMap), coords (coords) {} in VarStoreInstancer()
233 { return varStore.get_delta (varIdxMap.map (VarIdx::add (varIdx, offset)), coords); } in operator ()()
235 const VariationStore &varStore; member
Dhb-ot-var-mvar-table.hh70 varStore.sanitize (c, this) && in sanitize()
88 return (this+varStore).get_delta (record->varIdx, coords, coord_count); in get_var()
107 varStore; /* Offset to item variation store table. */ member
Dhb-ot-var-hvar-table.hh262 varStore.sanitize (c, this) && in sanitize()
304 hvar_plan.init (index_maps.as_array (), this+varStore, c->plan); in _subset()
312 if (unlikely (!out->varStore in _subset()
327 return (this+varStore).get_delta (varidx, in get_advance_delta_unscaled()
338 *lsb = (this+varStore).get_delta (varidx, coords, coord_count); in get_lsb_delta_unscaled()
346 varStore; /* Offset to item variation store table. */ member
400 *delta = (this+varStore).get_delta (varidx, coords, coord_count); in get_vorg_delta_unscaled()
Dhb-ot-layout-gdef-table.hh562 varStore; /* Offset to the table of Item Variation member
573 (version.to_int () >= 0x00010003u ? varStore.static_size : 0); in get_size()
585 (version.to_int () < 0x00010003u || varStore.sanitize (c, this))); in sanitize()
609 out->varStore = 0; in subset()
611 …subset_varstore = out->varStore.serialize_subset (c, varStore, this, c->plan->gdef_varstore_inner_… in subset()
780 case 1: return u.version.to_int () >= 0x00010003u && u.version1.varStore != 0; in has_var_store()
782 case 2: return u.version2.varStore != 0; in has_var_store()
790 …case 1: return u.version.to_int () >= 0x00010003u ? this+u.version1.varStore : Null(VariationStore… in get_var_store()
792 case 2: return this+u.version2.varStore; in get_var_store()
Dhb-ot-font.cc157 const OT::VariationStore &varStore = &HVAR + HVAR.varStore; in hb_ot_get_glyph_h_advances() local
158 …OT::VariationStore::cache_t *varStore_cache = font->num_coords * count >= 128 ? varStore.create_ca… in hb_ot_get_glyph_h_advances()
248 const OT::VariationStore &varStore = &VVAR + VVAR.varStore; in hb_ot_get_glyph_v_advances() local
249 …OT::VariationStore::cache_t *varStore_cache = font->num_coords ? varStore.create_cache () : nullpt… in hb_ot_get_glyph_v_advances()
Dhb-ot-var-avar-table.hh55 varStore.sanitize (c, base)); in sanitize()
60 Offset32To<VariationStore> varStore; /* Offset from the beginning of 'avar' table. */ member
195 const auto &var_store = this+v2.varStore; in map_coords()
Dhb-ot-layout-base-table.hh456 { return version.to_int () < 0x00010001u ? Null (VariationStore) : this+varStore; } in get_var_store()
503 (version.to_int () < 0x00010001u || varStore.sanitize (c, this)))); in sanitize()
513 varStore; /* Offset to the table of Item Variation member
Dhb-subset-cff2.cc415 if (acc.varStore != &Null (CFF2VariationStore)) in _serialize_cff2()
419 if (unlikely (!dest || !dest->serialize (c, acc.varStore))) return false; in _serialize_cff2()
Dhb-ot-color-colr-table.hh1440 varStore.sanitize (c, this)))); in sanitize()
1598 VarStoreInstancer instancer (this+varStore, in get_extents()
1629 Offset32To<VariationStore> varStore; member
/external/fonttools/Doc/source/varLib/
DvarStore.rst2 varStore title
5 .. automodule:: fontTools.varLib.varStore
Dindex.rst22 varStore
/external/fonttools/Tests/varLib/instancer/
Dinstancer_test.py351 varStore = hvar.VarStore
353 regions = varStore.VarRegionList.Region
362 assert len(varStore.VarData) == 1
363 assert varStore.VarData[0].ItemCount == 2
371 assert varStore.VarData[varIdx >> 16].Item[varIdx & 0xFFFF] == (
372 [0] * varStore.VarData[0].VarRegionCount
376 assert varStore.VarData[varIdx >> 16].Item[varIdx & 0xFFFF] == expectedDeltas
397 varStore = varfont["HVAR"].table.VarStore
399 assert varStore.VarRegionList.RegionCount == 0
400 assert not varStore.VarRegionList.Region
[all …]
/external/fonttools/Lib/fontTools/varLib/instancer/
D__init__.py453 varStore = mvar.VarStore
454 defaultDeltas = instantiateItemVariationStore(varStore, fvarAxes, axisLimits)
457 if varStore.VarRegionList.Region:
458 varIndexMapping = varStore.optimize()
486 varStore = vhvar.VarStore
488 instantiateItemVariationStore(varStore, fvarAxes, axisLimits)
490 if varStore.VarRegionList.Region:
495 varIndexMapping = varStore.optimize(use_NO_VARIATION_INDEX=False)
664 varStore = gdef.VarStore
667 defaultDeltas = instantiateItemVariationStore(varStore, fvarAxes, axisLimits)
[all …]
/external/fonttools/Lib/fontTools/ttLib/
DscaleUpem.py165 varStore = getattr(topDict, "VarStore", None)
166 getNumRegions = varStore.getNumRegions if varStore is not None else None
/external/fonttools/Lib/fontTools/colorLib/
Dbuilder.py192 varStore: Optional[ot.VarStore] = None,
220 if varStore is not None and version == 0:
223 if version in (None, 0) and not varStore:
244 version = 1 if (varStore or colorGlyphsV1) else 0
254 colr.VarStore = varStore
/external/fonttools/Lib/fontTools/
DfontBuilder.py627 varStore = buildVarStore(varRegionList, [varData])
628 vstore = VarStoreData(otVarStore=varStore)
838 varStore=None, argument
854 varStore=varStore,
/external/fonttools/Lib/fontTools/varLib/
D__init__.py32 from fontTools.varLib import builder, models, varStore
476 storeBuilder = varStore.OnlineVarStoreBuilder(axisTags)
528 store_builder = varStore.OnlineVarStoreBuilder(axisTags)
Dmutator.py18 from fontTools.varLib.varStore import VarStoreInstancer
Dmerger.py18 from fontTools.varLib import builder, models, varStore
20 from fontTools.varLib.varStore import VarStoreInstancer
1056 self.store_builder = varStore.OnlineVarStoreBuilder(axisTags)
/external/fonttools/Lib/fontTools/cffLib/
D__init__.py1978 varStore = VarStoreData(file)
1979 varStore.decompile()
1980 return varStore
1989 varStore = VarStoreData()
1990 varStore.xmlRead(name, attrs, content, parent)
1991 return varStore
/external/fonttools/Doc/source/
Dindex.rst58 - ``varLib.varStore``: Optimize a font's GDEF variation store
/external/fonttools/Lib/fontTools/feaLib/
Dbuilder.py34 from fontTools.varLib.varStore import OnlineVarStoreBuilder

12