parent
8ca9df7acb
commit
ba22df36ad
|
@ -80,7 +80,7 @@ struct SVG
|
||||||
struct accelerator_t
|
struct accelerator_t
|
||||||
{
|
{
|
||||||
void init (hb_face_t *face)
|
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 (); }
|
void fini () { table.destroy (); }
|
||||||
|
|
||||||
hb_blob_t *reference_blob_for_glyph (hb_codepoint_t glyph_id) const
|
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;
|
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. */
|
/* Cap num_metrics() and num_advances() based on table length. */
|
||||||
unsigned int len = table.get_length ();
|
unsigned int len = table.get_length ();
|
||||||
|
@ -186,7 +186,7 @@ struct hmtxvmtx
|
||||||
table = hb_blob_get_empty ();
|
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 ()
|
void fini ()
|
||||||
|
|
|
@ -524,7 +524,7 @@ struct GDEF
|
||||||
{
|
{
|
||||||
void init (hb_face_t *face)
|
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)))
|
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
|
||||||
{
|
{
|
||||||
hb_blob_destroy (this->table.get_blob ());
|
hb_blob_destroy (this->table.get_blob ());
|
||||||
|
|
|
@ -3141,7 +3141,7 @@ struct GSUBGPOS
|
||||||
{
|
{
|
||||||
void init (hb_face_t *face)
|
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)))
|
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
|
||||||
{
|
{
|
||||||
hb_blob_destroy (this->table.get_blob ());
|
hb_blob_destroy (this->table.get_blob ());
|
||||||
|
|
|
@ -274,7 +274,7 @@ struct name
|
||||||
{
|
{
|
||||||
void init (hb_face_t *face)
|
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);
|
assert (this->table.get_length () >= this->table->stringOffset);
|
||||||
this->pool = (const char *) (const void *) (this->table+this->table->stringOffset);
|
this->pool = (const char *) (const void *) (this->table+this->table->stringOffset);
|
||||||
this->pool_len = this->table.get_length () - this->table->stringOffset;
|
this->pool_len = this->table.get_length () - this->table->stringOffset;
|
||||||
|
|
Loading…
Reference in New Issue