summaryrefslogtreecommitdiff
path: root/tools/makefont/readme.txt
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2014-08-20 02:11:13 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2014-08-20 02:11:13 +0100
commitc8acc2c1666015daeb3038c838e5018c0ecd8903 (patch)
tree5ad2edaf0e5fb6be146491226dca4d915333d80d /tools/makefont/readme.txt
parentc45010b6370b50f8e6192ddb7dc3d7762c8c29f7 (diff)
parentd0d8573b046e5020d05c86a970d303084de19b7d (diff)
downloadfpGUI-c8acc2c1666015daeb3038c838e5018c0ecd8903.tar.xz
Merge branch 'release-1.2' into master
Diffstat (limited to 'tools/makefont/readme.txt')
-rw-r--r--tools/makefont/readme.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/makefont/readme.txt b/tools/makefont/readme.txt
new file mode 100644
index 00000000..ccb25d4e
--- /dev/null
+++ b/tools/makefont/readme.txt
@@ -0,0 +1,43 @@
+------[Forwarded message from Jean-Marc Levecque]------
+
+Hi,
+
+Here is a first step in embedding true type fonts in the report tool.
+
+Attached is a set of patches for u_pdf and u_demo to show how it works.
+
+In addition, I wrote a utility to create the definition file for any ttf
+file, called makefonts. I gave the *.fnt extension to the generated font
+definition file.
+
+A major problem is to compress the ttf file.
+From the site fpdf.org, I found a way to get this compressed file done
+by use of the zlib library.
+If anybody knows how to do the equivalent compression using fpc, that
+would be really great.
+For now, on this site, going to Tutorials>Tutorial 7, then down to see
+the link to "on line", one can select a ttf file, choose the encoding
+and download the *.z file which is the compressed embeddable file for pdf.
+
+To simplify the tests, I have attached the *.fnt and *.z files for all
+DejaVu and Liberation fonts I have on my distribution. These files can
+be put anywhere, as the demo requires to select the directoy containing
+them.
+They are all encoded with cp1252 which is a Microsoft extension of
+ISO-8859-1, and it would be easy to get any other encoding.
+
+I also tried to use Microsoft Comic font, but despite they are installed
+on my PC, they do not show up correctly in the preview, while due to the
+embedding, they display correctly in pdf.
+
+Trying to embed uncompressed ttf files does not seem to work, but as per
+pdf specification, it should. I must have missed something :(
+
+Another tool may be used if one wants to use a font from a different
+format: from the site freeconverter.com, it is possible to convert a
+font file from a format to another one, with a large choice of formats.
+
+Remember that font licence may not allow embedding.
+
+Best regards
+Jean-Marc