mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-04 21:15:06 +00:00
[cache] Add assertion for cache size
Expand cmap cache since free.
This commit is contained in:
parent
89ab5f2b21
commit
bed2d3dd2b
2 changed files with 5 additions and 2 deletions
|
@ -2014,7 +2014,8 @@ struct cmap
|
|||
|
||||
struct accelerator_t
|
||||
{
|
||||
using cache_t = hb_cache_t<21, 16, 8, true>;
|
||||
using cache_t = hb_cache_t<21, 19, 8, true>;
|
||||
static_assert (sizeof (cache_t) == 1024, "");
|
||||
|
||||
accelerator_t (hb_face_t *face)
|
||||
{
|
||||
|
|
|
@ -61,8 +61,10 @@
|
|||
* never need to call these functions directly.
|
||||
**/
|
||||
|
||||
using hb_ot_font_cmap_cache_t = hb_cache_t<21, 16, 8, true>;
|
||||
using hb_ot_font_cmap_cache_t = OT::cmap_accelerator_t::cache_t;
|
||||
static_assert (sizeof (hb_ot_font_cmap_cache_t) == 1024, "");
|
||||
using hb_ot_font_advance_cache_t = hb_cache_t<24, 16, 8, true>;
|
||||
static_assert (sizeof (hb_ot_font_advance_cache_t) == 1024, "");
|
||||
|
||||
#ifndef HB_NO_OT_FONT_CMAP_CACHE
|
||||
static hb_user_data_key_t hb_ot_font_cmap_cache_user_data_key;
|
||||
|
|
Loading…
Add table
Reference in a new issue