summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2014-05-22 06:27:46 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2014-05-22 06:27:46 +0100
commit93798138ea89b9149e2cb8c80bfc9b01ecdfec6b (patch)
tree2ef17e3fa23fb01a5e295d91087bdabd22df7e6d /tools
parent1cb21dd887517058444a4195c5f94b057e4e1d8c (diff)
downloadfpGUI-93798138ea89b9149e2cb8c80bfc9b01ecdfec6b.tar.xz
Adds the missing readme.txt file tothe "makefonts" tool directory
Diffstat (limited to 'tools')
-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