Merge pull request #61934 from Geometror/hashfuncs
Hash function improvements
This commit is contained in:
commit
632b933a03
6 changed files with 125 additions and 154 deletions
|
|
@ -2000,7 +2000,7 @@ Vector2 TextServerFallback::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) {
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ class TextServerFallback : public TextServerExtension {
|
|||
|
||||
Vector<FontTexture> textures;
|
||||
HashMap<int32_t, FontGlyph> glyph_map;
|
||||
HashMap<Vector2i, Vector2, VariantHasher, VariantComparator> kerning_map;
|
||||
HashMap<Vector2i, Vector2> kerning_map;
|
||||
|
||||
#ifdef MODULE_FREETYPE_ENABLED
|
||||
FT_Face face = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue