Skip to content

Commit

Permalink
Removed unnecessary early return
Browse files Browse the repository at this point in the history
If the glyph can be rendered locally, it would have already been rendered locally as part of calling out to TinySDF above.
  • Loading branch information
1ec5 committed Aug 15, 2024
1 parent 03b36ed commit 33aa001
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/render/glyph_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down

0 comments on commit 33aa001

Please sign in to comment.