minor
makes search for sanitize calls easier for me
This commit is contained in:
parent
8ca9df7acb
commit
ba22df36ad
@ -80,7 +80,7 @@ struct SVG
|
||||
struct accelerator_t
|
||||
{
|
||||
void init (hb_face_t *face)
|
||||
{ table = hb_sanitize_context_t().reference_table<SVG> (face); }
|
||||
{ table = hb_sanitize_context_t ().reference_table<SVG> (face); }
|
||||
void fini () { table.destroy (); }
|
||||
|
||||
hb_blob_t *reference_blob_for_glyph (hb_codepoint_t glyph_id) const
|
||||
|
@ -169,7 +169,7 @@ struct hmtxvmtx
|
||||
|
||||
num_advances = T::is_horizontal ? face->table.hhea->numberOfLongMetrics : face->table.vhea->numberOfLongMetrics;
|
||||
|
||||
table = hb_sanitize_context_t().reference_table<hmtxvmtx> (face, T::tableTag);
|
||||
table = hb_sanitize_context_t ().reference_table<hmtxvmtx> (face, T::tableTag);
|
||||
|
||||
/* Cap num_metrics() and num_advances() based on table length. */
|
||||
unsigned int len = table.get_length ();
|
||||
@ -186,7 +186,7 @@ struct hmtxvmtx
|
||||
table = hb_blob_get_empty ();
|
||||
}
|
||||
|
||||
var_table = hb_sanitize_context_t().reference_table<HVARVVAR> (face, T::variationsTag);
|
||||
var_table = hb_sanitize_context_t ().reference_table<HVARVVAR> (face, T::variationsTag);
|
||||
}
|
||||
|
||||
void fini ()
|
||||
|
@ -375,7 +375,7 @@ struct MarkGlyphSetsFormat1
|
||||
ret = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
//not using o->serialize_subset (c, offset, this, out) here because
|
||||
//OTS doesn't allow null offset.
|
||||
//See issue: https://github.com/khaledhosny/ots/issues/172
|
||||
@ -524,7 +524,7 @@ struct GDEF
|
||||
{
|
||||
void init (hb_face_t *face)
|
||||
{
|
||||
this->table = hb_sanitize_context_t().reference_table<GDEF> (face);
|
||||
this->table = hb_sanitize_context_t ().reference_table<GDEF> (face);
|
||||
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
|
||||
{
|
||||
hb_blob_destroy (this->table.get_blob ());
|
||||
|
@ -3141,7 +3141,7 @@ struct GSUBGPOS
|
||||
{
|
||||
void init (hb_face_t *face)
|
||||
{
|
||||
this->table = hb_sanitize_context_t().reference_table<T> (face);
|
||||
this->table = hb_sanitize_context_t ().reference_table<T> (face);
|
||||
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
|
||||
{
|
||||
hb_blob_destroy (this->table.get_blob ());
|
||||
|
@ -274,7 +274,7 @@ struct name
|
||||
{
|
||||
void init (hb_face_t *face)
|
||||
{
|
||||
this->table = hb_sanitize_context_t().reference_table<name> (face);
|
||||
this->table = hb_sanitize_context_t ().reference_table<name> (face);
|
||||
assert (this->table.get_length () >= this->table->stringOffset);
|
||||
this->pool = (const char *) (const void *) (this->table+this->table->stringOffset);
|
||||
this->pool_len = this->table.get_length () - this->table->stringOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user