Java compile problem: Fonts with height other than multiple of 8 - Fontcreater

Dear Community
Hi Bill

As seen in Bills post (http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=83697&start=0), he suggests a small patch to make the problem with fonts with heights other than multiples of 8 vanish. When I try to compile the changed FontExport.java, I get a lot of errors:

toddd@miostar:~/Documents/Arduino/flip/GLCDFontCreator2/util$ javac FontExport.java 
FontExport.java:9: package gui does not exist
import gui.MainWindow;
          ^
FontExport.java:31: cannot find symbol
symbol  : class MainWindow
location: class util.FontExport
	MainWindow mainWnd;
	^
FontExport.java:33: cannot find symbol
symbol  : class MainWindow
location: class util.FontExport
	public FontExport(MainWindow mainWnd) {
	                  ^
FontExport.java:37: cannot find symbol
symbol  : class Font
location: class util.FontExport
	public void exportFont(Font font) {
	                       ^
FontExport.java:61: cannot find symbol
symbol  : class Font
location: class util.FontExport
	private int getHeaderSize(String template, Font font) {
	                                           ^
FontExport.java:80: cannot find symbol
symbol  : class Font
location: class util.FontExport
	public void exportToCHeader(Font font, File destination) {
	                            ^
FontExport.java:74: inconvertible types
found   : <nulltype>
required: int
			if(b) headerSize += font.getCharCount();
			                                     ^
FontExport.java:119: hexStr(int,int) in util.FontExport cannot be applied to (java.lang.String,int)
			template = template.replaceAll("%binSize", hexStr(getHeaderSize(template, font)+font.getSize(), 1)+", "+hexStr(getHeaderSize(template, font)+font.getSize(), 0));
			                                           ^
FontExport.java:119: hexStr(int,int) in util.FontExport cannot be applied to (java.lang.String,int)
			template = template.replaceAll("%binSize", hexStr(getHeaderSize(template, font)+font.getSize(), 1)+", "+hexStr(getHeaderSize(template, font)+font.getSize(), 0));
			                                                                                                        ^
FontExport.java:127: cannot find symbol
symbol  : class FontCharacter
location: class util.FontExport
			FontCharacter[] fc = font.getAllChars();
			^
FontExport.java:161: operator + cannot be applied to Font.getStartIndex,int
					fontData += "// "+(font.getStartIndex()+i);
					                                     ^
11 errors

Has anyone put a compiled version somewhere I could download it?
Or does anyone see, what I do wrong? I would appreciate a java compiler help very much,
thanks,

Dani

I don't have a solution for the monospaced fonts, but the odd format/height issue is not an issue
when using the arduino glcd v3 library code.
I totally re-wrote the font rendering in the v3 library and it knows how to properly deal with Thiele's font format
including when the text is not aligned on 8 pixel boundaries.
i.e. any font size can now be rendered on any pixel boundary.

For a while, I did experiment with a patched FontCreator2 that used what I consider
to be a proper glcd font format.
I played with this a few years ago as I was updating/fixing Sami Varjo's ks0107 sourceforge project:

But then Michael Margolis, talked me into working with him on his Arduino ks0108 glcd library project.

I still would like to stomp out that original Thiele font format one day
as it is quite painful to deal with and makes the code larger and slower.
I also think it was an accidental miscoding (bug) in the original code.

But for now, as long as you use the arduino glcd v3 library, there shouldn't be any font height
or pixel alignment issues with the font header files created by FontCreator2.

--- bill