Sam Howard

Sam is a developer at IDRsolutions who mostly specialises in font support and conversion. He’s also enjoyed working with Java 3D, Java FX and Swing. His other interests include music and game design.

PDF2HTML5 Font Updates

1 min read

One of the most important visual elements of any document is the fonts. The PDF format has great support for fonts, allowing you to embed Type 1, CFF, TrueType, OpenType, and many more kinds of fonts.

One of the problems we’ve faced when writing our PDF2HTML converter is that Web browsers have much more limited font support – TrueType and OpenType are supported in most modern browsers, but Type 1 and CFF support is nowhere to be found.

As a result of this, we’ve been working on a lot of code for converting various types of fonts into OpenType to get the maximum level of support across browsers. For some, this is easy – for instance, it is possible to create an OpenType font by wrapping up a CFF font and adding a number of additional tables. (Although even this is not without complications…)

Our most recent release included a lot of code for dealing with CID Identity fonts, which are often used due to a bug in Adobe’s Creative Suite. By default these files contain no mapping from characters (the concept of a letter – ‘A’ or ‘B’) to glyphs (A specific letter – the ‘A’ of Times New Roman, for instance), which means it is impossible to extract meaningful text data from them. Thanks to our new code, they will at least display properly in browsers.

Upcoming enhancements include support for CID fonts with ToUnicode arrays attached, support for converting Type 1 fonts to OpenType, and we have also just started on allowing TrueType to OpenType conversion, too.

What would you most like to see in terms of font development?

This post is part of our “Fonts Articles Index” in these articles we explore Fonts.

Sam Howard

Sam is a developer at IDRsolutions who mostly specialises in font support and conversion. He’s also enjoyed working with Java 3D, Java FX and Swing. His other interests include music and game design.

PDF to HTML5’s Holy Grail – Vertical positioning for…

It’s safe to say that if someone designed fonts from scratch today they’d be very different on the inside. As with many technologies, the...
Sam Howard
1 min read

WOFF 2.0: What is it, why is it coming,…

WOFF 2.0 is working its way towards being a standard recommended by the W3C, so it seems like a good time to look at...
Sam Howard
2 min read

Web fonts: A quick introduction to Wrapper and Glyph…

I was planning to write about WOFF 2.0 this week, and wanted to link to a previous article I’d written which explains the structure...
Sam Howard
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *