When writing our PDF to HTML5 and SVG font converter, the biggest headache has been making the fonts work (the PDF file format allows alsorts of interesting little ‘gotchas’ which need handling for the fonts to work in different browsers and Chrome, Safari, Firefox and IE all have their own ‘features’). We are very pleased with the general quality of the output from the conversion and much of our time is currently spent on these ‘corner cases’….
The second biggest headache has been choosing the font formats to use. Inside a PDF you can have OpenType, Truetype, and Postscript. So we started off by using the font format of the data. This is problematic because the font data often needs ‘tweaking’ (which often means rewriting large parts of the font data) and because not all Browsers support all font types. IE for example does not support Truetype (ironic as Microsoft invented the format)….
In our latest release, we have moved to a default font format of WOFF. This offers THREE key advantages:-
1. It is the best supported file format across all browsers.
2. It includes compression.
3. It allows us to standardise on one font format (no need for separate EOT conversion just for Internet Explorer).
You can still output as OTF and TFF files if required by we have made WOFF the default format. We hope you find it a good choice.
This post is part of our “Fonts Articles Index” in these articles we explore Fonts.
Latest posts by Mark Stephens (see all)
- How we are improving our code quality with IDEA in 2018 - March 7, 2018
- How we are improving our code quality with NetBeans in 2018 - March 1, 2018
- 3 ways that the European Union is changing the way Companies write software in 2018 - January 31, 2018
- IDRsolutions product range update for 2018 - January 22, 2018
- 4 ways Companies can make remote working successful - December 21, 2017