Skip to content

Conversation

@TkymHrt
Copy link
Member

@TkymHrt TkymHrt commented Jun 26, 2025

対応Issue

https://nut-m-e-g.slack.com/archives/C020WQ3GY07/p1750922545948019

概要

PDF作成時に一部の文字が出力されない問題を修正しました。

これまでWebフォントをURLで読み込んでいましたが、フォントがサブセット化されており一部の記号などが読み込まれていなかったようでした。
完全な文字セットを含むNotoSansJP-Regular.ttfをプロジェクトのpublic/fontsディレクトリに配置し、ローカルファイルとして読み込むように変更しました。

ついでに、絵文字の表示にも対応させました。

画面スクリーンショット等

image image

テスト項目

  • 領収書・請求書PDFが正常に生成・ダウンロードできること。
  • 生成されたPDF内の日本語(旧字体や特殊な漢字、記号)が文字化けせずに正しく表示されていることを確認。
  • (PDF内の絵文字が正しく表示されていることを確認。)

Copy link
Collaborator

@Kubosaka Kubosaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants