Thread "Change default font in TCPDF renderer"
Tabs
-
tamoto | tamoto | 21. Aug 2018, 05:05
Edited on: 28. Aug 2018, 17:33 - by mjansen | mjansenChange default font in TCPDF rendererHow to change default font in TCPDF renderer from Helvetica to other option?
I am trying to following steps.
1. Download IPA font and placed specified directory.
- Download site: https://ipafont.ipa.go.jp/old/ipafont/fontspec.html#en
- Copy to: /usr/share/fonts/ipa-mincho/ipam
2. Execute “tcpdf_addfont.php”
- Go to ILIAS installed directory
/libs/composer/vendor/tecnickcom/tcpdf/tools
php ./tcpdf_addfont.php -b -t ipag -f 32 -i /usr/share/fonts/ipa-mincho/ipam.ttf
3. Confirm 3 of added files in /libs/composer/vendor/tecnickcom/tcpdf/fonts- ipam.ctg.z
- ipam.php
- ipam.z
4. Edit font name from “Helvetica” to “ipam”
/libs/composer/vendor/tecnickcom/config/tcpdf_config.php
Is there any other configuration required?
edit 2018/08/29
edit 2
test by "mjansen"