Ich hab gerade versucht ein eigene Schrift zu laden, was denke ich auch mal gekalpt hat.
Nun möchte ich die größe des drawStrings ändern, aber ich bekomme das absolut nicht hin.
Kann mir mal bitte jemand sagen wie das richtig geht?
Das hab ich bis jetzt:
mfg. Dagobert
Nun möchte ich die größe des drawStrings ändern, aber ich bekomme das absolut nicht hin.
Kann mir mal bitte jemand sagen wie das richtig geht?
Das hab ich bis jetzt:
Code:
Graphics g = frame.getGraphics();
g.drawImage(bild, 0, 0, frame.getWidth(), frame.getHeight(), this);
g.setColor(Color.yellow);
Font f = null;
try {
f = Font.createFont( Font.TRUETYPE_FONT, new FileInputStream("c:/RING.TTF"));
} catch (FileNotFoundException e){}
catch (FontFormatException e){}
catch (IOException e){}
g.setFont(f);
g.drawString("..................String................", frame.getHeight()/2, frame.getWidth()/2);
g.dispose();
mfg. Dagobert