Hash function improvements
This commit is contained in:
@ -2780,7 +2780,7 @@ Vector2 TextServerAdvanced::font_get_kerning(const RID &p_font_rid, int64_t p_si
|
||||
|
||||
ERR_FAIL_COND_V(!_ensure_cache_for_size(fd, size), Vector2());
|
||||
|
||||
const HashMap<Vector2i, Vector2, VariantHasher, VariantComparator> &kern = fd->cache[size]->kerning_map;
|
||||
const HashMap<Vector2i, Vector2> &kern = fd->cache[size]->kerning_map;
|
||||
|
||||
if (kern.has(p_glyph_pair)) {
|
||||
if (fd->msdf) {
|
||||
|
||||
@ -191,7 +191,7 @@ class TextServerAdvanced : public TextServerExtension {
|
||||
|
||||
Vector<FontTexture> textures;
|
||||
HashMap<int32_t, FontGlyph> glyph_map;
|
||||
HashMap<Vector2i, Vector2, VariantHasher, VariantComparator> kerning_map;
|
||||
HashMap<Vector2i, Vector2> kerning_map;
|
||||
hb_font_t *hb_handle = nullptr;
|
||||
|
||||
#ifdef MODULE_FREETYPE_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user