From 33aa001158999d5cefaa431d76a129c77bc828ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Thu, 15 Aug 2024 01:21:56 -0700 Subject: [PATCH] Removed unnecessary early return If the glyph can be rendered locally, it would have already been rendered locally as part of calling out to TinySDF above. --- src/render/glyph_manager.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/render/glyph_manager.ts b/src/render/glyph_manager.ts index 6093f870152..3b987860ae7 100644 --- a/src/render/glyph_manager.ts +++ b/src/render/glyph_manager.ts @@ -92,12 +92,6 @@ export class GlyphManager { } const range = Math.floor(id / 256); - const isInBMP = range * 256 <= 0xFFFF; - if (!isInBMP && this._doesCharSupportLocalGlyph(+id)) { - entry.ranges[range] = true; - return {stack, id, glyph: null}; - } - if (entry.ranges[range]) { return {stack, id, glyph}; }