Posted by dvelst
on October 5, 2007 at 2:02 AM PDT
I'm faced with the following challenge: for all fonts I request from the platform I work on I want to check for each font separately if it's a monospaced text font or not. The platform I work on is SuSe Linux 10.1. I start with following code:
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
Font fonts = ge.getAllFonts();
So now for each font in the variable fonts I want to check if it's a monospaced text font. How should I do this ?
Thanks in advance and best regards, Diederick van Elst