0

I am working on a project where I want to use custom fonts to draw text on image. I don't want to use the inbuilt OpenIMAJ fonts. Is there a way to do that?

Arif Rabbani
  • 131
  • 1
  • 2
  • 12

1 Answers1

0

Use the GeneralFont class to access all system fonts via AWT:

MBFImage img = new MBFImage( 800, 600, 3 );
img.drawText( "OpenIMAJ", 20, 100, new GeneralFont("Arial", Font.PLAIN ), 120, RGBColour.WHITE );
Jon
  • 841
  • 4
  • 5