diff --git a/view/next-project/public/fonts/NotoSansJP-Regular.ttf b/view/next-project/public/fonts/NotoSansJP-Regular.ttf new file mode 100644 index 000000000..7c15c5959 Binary files /dev/null and b/view/next-project/public/fonts/NotoSansJP-Regular.ttf differ diff --git a/view/next-project/src/utils/createSponsorActivitiesInvoicesPDF.tsx b/view/next-project/src/utils/createSponsorActivitiesInvoicesPDF.tsx index cf01af89f..95f24af41 100644 --- a/view/next-project/src/utils/createSponsorActivitiesInvoicesPDF.tsx +++ b/view/next-project/src/utils/createSponsorActivitiesInvoicesPDF.tsx @@ -5,7 +5,12 @@ import { Invoice } from '@type/common'; Font.register({ family: 'NotoSansJP', - src: 'https://fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.woff2', + src: '/fonts/NotoSansJP-Regular.ttf', +}); + +Font.registerEmojiSource({ + format: 'png', + url: 'https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/', }); const styles = StyleSheet.create({ diff --git a/view/next-project/src/utils/createSponsorActivitiesReceiptsPDF.tsx b/view/next-project/src/utils/createSponsorActivitiesReceiptsPDF.tsx index 55273746d..dd5ca365e 100644 --- a/view/next-project/src/utils/createSponsorActivitiesReceiptsPDF.tsx +++ b/view/next-project/src/utils/createSponsorActivitiesReceiptsPDF.tsx @@ -17,7 +17,12 @@ import { SponsorActivityView } from '@type/common'; Font.register({ family: 'NotoSansJP', - src: 'https://fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.woff2', + src: '/fonts/NotoSansJP-Regular.ttf', +}); + +Font.registerEmojiSource({ + format: 'png', + url: 'https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/', }); const styles = StyleSheet.create({