source code :  drawingtext.java 

import java.awt.*;

class drawingtext extends Frame

{

Font f1=new Font("Courier",Font.BOLD,32);

Font f2=new Font("Edwardian Script ITC",Font.BOLD,36);

Font f3=new Font("Times New Roman",Font.ITALIC,50);

public void paint(Graphics g)

{

g.setFont(f1);

g.drawString("DBJ College",50,50);

g.setFont(f2);

g.drawString("Computer Science ",50,100);

g.setFont(f3);

g.drawString("SYCS STUDENTS",50,150);

}

   public static void main(String args[])

 {

drawingtext f=new drawingtext();

f.setSize(300,300);

f.setVisible(true);

   }

}


output: