We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1527fd8 + 03fe2dc commit 824cc7fCopy full SHA for 824cc7f
pdf/src/CampPrint.vue
@@ -75,8 +75,15 @@ const registerFonts = async () => {
75
})
76
77
Font.registerEmojiSource({
78
- formag: 'png',
79
- url: '/twemoji/assets/72x72/',
+ withVariationSelectors: true,
+ builder(code) {
80
+ // If the code point does not contain 200d, remove any fe0f
81
+ // https://github.com/twitter/twemoji/issues/419#issuecomment-637360325
82
+ const filename = code.includes('200d')
83
+ ? code
84
+ : code.replaceAll('fe0f', '').replaceAll(/--|^-|-$/g, '')
85
+ return '/twemoji/assets/72x72/' + filename + '.png'
86
+ },
87
88
89
return await Promise.all([
0 commit comments