-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2040 from alerque/font-fallback
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
Set paper size 297.6377985 419.5275636 | ||
Begin page | ||
Mx 14.8819 | ||
My 29.7654 | ||
My 28.6664 | ||
Set font Noto Serif CJK JP;10;400;;normal;;;LTR | ||
T 1542 w=10.0000 (ん) | ||
My 40.6664 | ||
Set font Gentium Plus;10;400;;normal;;;LTR | ||
T 0 w=6.8359 (ん) | ||
My 52.6664 | ||
T 0 w=6.8359 (ん) | ||
End page | ||
Finish |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
\begin[papersize=a6]{document} | ||
\nofolios | ||
\noindent | ||
\neverindent | ||
\use[module=packages.font-fallback] | ||
|
||
% Adding Noto as a fallback should make this character render | ||
\font:add-fallback[family=Noto Serif CJK JP] | ||
ん | ||
|
||
% But removing it should give us tofu | ||
\font:remove-fallback | ||
ん | ||
|
||
% Also clearing all fallbacks should result in tofu | ||
\font:add-fallback[family=Noto Serif CJK JP] | ||
\font:clear-fallbacks | ||
ん | ||
|
||
\end{document} |