canvacord
canvacord copied to clipboard
[Bug]: Bad font style and unknown emojis.
Minimal code to reproduce the problem:
await new Rank()
// some other configs params...
.renderEmojis(true)
.build({ fontX: "Arial", fontY: "Arial" });
// I have the latest package version.
Screenshot:
Minimal code to reproduce the problem:
await new Rank() // some other configs params... .renderEmojis(true) .build({ fontX: "Arial", fontY: "Arial" }); // I have the latest package version.
Screenshot:
![]()
Wdym by the font style? You set it to arial :thinking:
And yes, .renderEmojis
was removed, it basically does nothing in the latest version. It exists for backwards compatibility (only in terms of API)
Okay, I'm removed { fontX: "Arial", fontY: "Arial" }
from build()
and .renderEmojis(true)
, but emojis don't rendered :(
Okay, I'm removed
{ fontX: "Arial", fontY: "Arial" }
frombuild()
and.renderEmojis(true)
, but emojis don't rendered :(
Yeah, that's because there is no font available that accepts unicode characters. Which system are you on? On windows, it uses windows' font to render emoji and same goes on mac. You can try installing a font like apple emoji or something similar on your system and see if it works. Canvacord currently does not bundle emoji font
Okay, I'm removed
{ fontX: "Arial", fontY: "Arial" }
frombuild()
and.renderEmojis(true)
, but emojis don't rendered :(Yeah, that's because there is no font available that accepts unicode characters. Which system are you on? On windows, it uses windows' font to render emoji and same goes on mac. You can try installing a font like apple emoji or something similar on your system and see if it works. Canvacord currently does not bundle emoji font
I'm using Ubuntu 22.04 LTS on aarch64 architecture.
ref https://github.com/Brooooooklyn/canvas/issues/511
For reference: https://github.com/Brooooooklyn/canvas/issues/511#issuecomment-1214356011
@DevAndromeda, I need to install the font and write the font name in .build()
as fontX
or fontY
, yes?
@LWJerri that could also work but im thinking about implementing it via .renderEmojis
method
I will do it today
Okay.