Skip to content

Commit

Permalink
Fixing "emojis not rendering at all" Chrome on iPhone bug - see mozil…
Browse files Browse the repository at this point in the history
  • Loading branch information
gheja committed Sep 11, 2021
1 parent 0b8fb87 commit 04221c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
## bugs

Chrome on iPhone
- [ ] emojis not rendering at all
- [x] pull-to-refresh is not prevented
- [x] emojis not rendering at all - https://github.com/mozilla/twemoji-colr/issues/50
- [x] pull-to-refresh is not prevented - https://stackoverflow.com/a/57215061
- [ ] css media query is not updating ("rotate phone")
- [x] win screen: blur is not working
- [ ] win screen: buttons are not working?
Expand Down
2 changes: 1 addition & 1 deletion src/gfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class Gfx
ctx.font = (PRERENDER_SIZE * 0.95) + "px twemoji";
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillText(index, PRERENDER_SIZE / 2, PRERENDER_SIZE / 2);
ctx.fillText(index, PRERENDER_SIZE / 2, PRERENDER_SIZE * 0.7);

this.prerenderedStuffs[index] = canvas;
}
Expand Down
Binary file modified src/twemoji.ttf
Binary file not shown.

0 comments on commit 04221c8

Please sign in to comment.