Skip to content

Commit

Permalink
Try forcing emoji font for date svg
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Nov 17, 2023
1 parent d2781b3 commit 1ed739d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file added .fonts/NotoColorEmoji-Regular.ttf
Binary file not shown.
6 changes: 3 additions & 3 deletions src/clients/LoathingDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ export class LoathingDate {
return dedent`
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="110" height="30" style="dominant-baseline: hanging;">
<text x="10" y="2" font-size="30">${
<text x="10" y="2" font-size="30" font-family="Noto Color Emoji">${
moonIcons[this.getRonaldPhase()]
}</text>
<text x="70" y="2" font-size="30">${
<text x="70" y="2" font-size="30" font-family="Noto Color Emoji">${
moonIcons[this.getGrimacePhase()]
}</text>
${
hamburglarX !== null &&
`<text x="${hamburglarX}" y="11" font-size="10">${hamburglarIcon}</text>`
`<text x="${hamburglarX}" y="11" font-size="10" font-family="Noto Color Emoji">${hamburglarIcon}</text>`
}
</svg>
`;
Expand Down

0 comments on commit 1ed739d

Please sign in to comment.