Skip to content

Commit

Permalink
Lowered amount of characters in width map
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro270707 committed Nov 25, 2023
1 parent dfc1607 commit 9e9ae0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/minecraft-tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TextRenderer {
this.characterWidthsMap = new Map();

document.fonts.onloadingdone = () => {
for (let charCode = 33; charCode <= 65535; charCode++) {
for (let charCode = 33; charCode <= 16384; charCode++) {
const char = String.fromCodePoint(charCode);
const width = this.getWidth(char, false);

Expand Down

0 comments on commit 9e9ae0e

Please sign in to comment.