|
|
@ -29,7 +29,7 @@ |
|
|
|
#include "hb-set.h" |
|
|
|
#include "hb-set.h" |
|
|
|
#include "hb-subset-glyf.hh" |
|
|
|
#include "hb-subset-glyf.hh" |
|
|
|
|
|
|
|
|
|
|
|
HB_INTERNAL bool |
|
|
|
static bool |
|
|
|
_calculate_glyf_and_loca_prime_size (const OT::glyf::accelerator_t &glyf, |
|
|
|
_calculate_glyf_and_loca_prime_size (const OT::glyf::accelerator_t &glyf, |
|
|
|
hb_prealloced_array_t<unsigned int> &glyph_ids, |
|
|
|
hb_prealloced_array_t<unsigned int> &glyph_ids, |
|
|
|
bool *use_short_loca, /* OUT */ |
|
|
|
bool *use_short_loca, /* OUT */ |
|
|
@ -63,7 +63,7 @@ _calculate_glyf_and_loca_prime_size (const OT::glyf::accelerator_t &glyf, |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
HB_INTERNAL void |
|
|
|
static void |
|
|
|
_write_loca_entry (unsigned int id, unsigned int offset, bool is_short, void *loca_prime) { |
|
|
|
_write_loca_entry (unsigned int id, unsigned int offset, bool is_short, void *loca_prime) { |
|
|
|
if (is_short) { |
|
|
|
if (is_short) { |
|
|
|
((OT::HBUINT16*) loca_prime) [id].set (offset / 2); |
|
|
|
((OT::HBUINT16*) loca_prime) [id].set (offset / 2); |
|
|
@ -72,7 +72,7 @@ _write_loca_entry (unsigned int id, unsigned int offset, bool is_short, void *lo |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
HB_INTERNAL bool |
|
|
|
static bool |
|
|
|
_write_glyf_and_loca_prime (const OT::glyf::accelerator_t &glyf, |
|
|
|
_write_glyf_and_loca_prime (const OT::glyf::accelerator_t &glyf, |
|
|
|
const char *glyf_data, |
|
|
|
const char *glyf_data, |
|
|
|
hb_prealloced_array_t<unsigned int> &glyph_ids, |
|
|
|
hb_prealloced_array_t<unsigned int> &glyph_ids, |
|
|
@ -109,7 +109,7 @@ _write_glyf_and_loca_prime (const OT::glyf::accelerator_t &glyf, |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
HB_INTERNAL bool |
|
|
|
static bool |
|
|
|
_hb_subset_glyf_and_loca (const OT::glyf::accelerator_t &glyf, |
|
|
|
_hb_subset_glyf_and_loca (const OT::glyf::accelerator_t &glyf, |
|
|
|
const char *glyf_data, |
|
|
|
const char *glyf_data, |
|
|
|
hb_prealloced_array_t<hb_codepoint_t>&glyphs_to_retain, |
|
|
|
hb_prealloced_array_t<hb_codepoint_t>&glyphs_to_retain, |
|
|
|