change: replace bundled Noto fonts with an Adobe NotDef tofu fallback#859
Open
u1f992 wants to merge 1 commit into
Open
change: replace bundled Noto fonts with an Adobe NotDef tofu fallback#859u1f992 wants to merge 1 commit into
u1f992 wants to merge 1 commit into
Conversation
… in the Docker image
a6601df to
5433f9c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes: #832
コンテナイメージへのNotoフォントの同梱をやめ、フォールバックとしてAdobe NotDefを設定するPRです。手元でのビルドでは、イメージサイズは2.52GB→1.72GB(amd64)になります。
(Vivliostyleで本を作ろう Vol.6より)補足:Adobe NotDefにはOTF/TTFが用意されており、採用したOTFはPDFにはType 3で埋め込まれます。TTFでは通常ウェイトの場合Type 3を回避しCFF埋め込み、ただし合成ボールドなどを用いるとType 3で埋め込まれます(参考)。Type 3で埋め込まれるかはどちらを選んでも文書次第で、TTFはOTFの10倍近いサイズです。正しくフォントを用意すれば埋め込まれないはずのフォールバックにサイズが増えるほうを用意するのは合理的ではないため、OTFを採用しました。
通常、以下に配置されたフォントが認識されます。
プロジェクトで使用するフォントを格納したディレクトリをこれらの下にマウントすれば、ビルドに用いることができます。