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