1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/noalyss-6.9.0.0/doc/tfpdf
Laurent Peuch fce579e032 init
2015-09-27 00:42:21 +02:00
..
ex.pdf init 2015-09-27 00:42:21 +02:00
ex.php init 2015-09-27 00:42:21 +02:00
HelloWorld.txt init 2015-09-27 00:42:21 +02:00
info.htm init 2015-09-27 00:42:21 +02:00
README.txt init 2015-09-27 00:42:21 +02:00

tFPDF accepts UTF-8 encoded text. It embeds font subsets allowing small PDF files.

It requires a folder 'unifont' as a subfolder of the 'font' folder.

You should make the 'unifont' folder writeable (CHMOD 755 or 644). Although this
is not essential, it allows caching of the font metrics the first time a font is used,
making subsequent uses much faster.

All tFPDF requires is a .ttf TrueType font file. The file should be placed in the
'unifont' directory. Optionally, you can also define the path to your system fonts e.g. 'C:\Windows\Font'
(see the example ex.php file) and reference TrueType fonts in this directory.

Pass a fourth parameter as true when calling AddFont(), and use utf-8 encoded text 
when using Write() etc.