Java PDF Blog

PDF solutions for big and small customers

Java and PDF development - our personal experiences and discoveries

Download JPedal

Download JPedal PDF viewers

PDF to Image service

Try our PDF to image conversion service now.

Java PDF Ebook Solution

Try our Ebook solution now.

Subscribe

Your email:

Java PDF blog

Current Articles | RSS Feed RSS Feed

Software Development: Are we listening carefully?

Posted by Sam Howard on Tue, May 25, 2010 @ 01:53 AM
Submit to Digg digg it |  Add to delicious  delicious |  Submit to StumbleUpon StumbleUpon | Submit to Reddit reddit 

The quality of documentation and tools in an area of software development has an incredible impact on us developers. They both influence how fast we can work, the quality of the software we write, and even how we feel about our work.

I've recently been working on adding some support for hinting into our TrueType font renderer. I was delighted to find a number of excellent tools for working with TrueType fonts, such as Microsoft's font tools and FontForge, but unfortunately found the TrueType documentation rather lacking.

Instructed font hinting like that used in TrueType fonts is a complicated subject. Each glyph contains a small (ish!) program written in TrueType byte code, which is run in order to manipulate the points. This manipulation was initially designed primarily for grid fitting, a process which improved the appearance of text on screen before anti-aliasing became a feasible option, but is now also used extensively in foreign language fonts to move and change the shape of components of a compound glyph.

 

Japanese characters before and after their glyph programs have been run
Chinese characters before and after their glyph programs are run.


As can be expected with such a complex field, mistakes and ambiguities have crept into the documentation, and while generally very good, even the tools have some flaws.

TrueType was initially developed by Apple in response to Adobe's rather restrictively licensed Type 1 font technology, but was later licensed by Microsoft, eventually making it the de-facto standard on desktop computers. As a result, there are two primary sources of documentation – Apple and Microsoft. While they supposedly define exactly the same system, there are occasional direct contradictions in what they say! In fact, in Apple's guide the definition and example given for one of the most important byte codes is completely wrong.

This wouldn't be surprising in a new document – as I said, it's a complex topic – but these guides were written in the mid nineties! I can't be the first to have found these mistakes, but since in both cases there is no obvious way of contacting the authors, they've stayed incorrect for almost 15 years.

This, to me, highlights the need for a clear and direct line of communication between those writing specifications and those who use them – something we've been trying hard to achieve. Anything unclear? Let us know! We're here to help.

11 Comments Click here to read/write comments

PDF questions - where should you ask them

Posted by Mark Stephens on Tue, Dec 29, 2009 @ 08:38 AM
Submit to Digg digg it |  Add to delicious  delicious |  Submit to StumbleUpon StumbleUpon | Submit to Reddit reddit 
Tags: ,

The PDF file format is a very common format, and also quite a complex one. So you may well want to ask some questions. What you need is somewhere where there are knowledgeable experts prepared to share knowledge and help out. As a late Christmas present, here are some recommendations on places we think are really good.

PlanetPdf has been going a long time. Its forum has some very talented developers (Aandi Inston is a regular) who patiently answer alsorts of questions.

4 x PDF Help is a relatively new site from part of the crowd who helped setup PlanetPdf. I already recognise some of the 'rockstars' of the PDF world answering questions on it. It uses the interface from stackoverflow so people can vote on issues and the most popular float to the top.

Stackoverflow has really taken the developer world by storm in 2009, making it much easier to get technical answers. Although a general site, it has a regular selection of PDF related questions and lots of knowledgeable answers. 

I have seen quite a few questions about IText on general forums, and the best place to get answers to this is the IText mailing lists where the actual IText developers are very active in answering questions.

And lastly, if you are using JPedal, remember we offer a support forum for questions.

Wherever you choose to post your question, always remember:-

1. Be specific - the more precise the question the more likely you are to get an answer.

2. Be courteous and polite.

3. Don't expect other people to do your work for you. People on these forums are happy to help you learn but not there to write code for you.

0 Comments Click here to read/write comments

All Posts