We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emoji modifiers are not combined.
const { writeFileSync } = require("fs"); const { join } = require("path"); const { createCanvas, GlobalFonts } = require("@napi-rs/canvas"); console.log(__dirname); GlobalFonts.registerFromPath( join(__dirname, "./public/fonts/Apple/[email protected]"), "Apple Emoji" ); const canvas = createCanvas(760, 360); const ctx = canvas.getContext("2d"); ctx.font = "50px Apple Emoji"; ctx.strokeText("💃🏿", 50, 100); ctx.strokeText("👩🏿🦳", 50, 180); ctx.strokeText("🫱🏻🫲🏾", 50, 260); const b = canvas.toBuffer("image/png"); writeFileSync(join(__dirname, "draw-emoji.png"), b);
Expecting this outcome where the emoji combines with modifiers Ended up with emojis and modifiers symbols
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Emoji modifiers are not combined.
Expecting this outcome where the emoji combines with modifiers
Ended up with emojis and modifiers symbols
The text was updated successfully, but these errors were encountered: