Program to show the working of settextstyle with different fonts in horizontal direction

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
  clrscr();
  int gm=DETECT,gd,i;
   initgraph(&gm,&gd,"");
 settextstyle(0,0,1); //(font,direction,charsize)
 outtextxy(50,150," WELCOME TO GRAPHICS ");
  settextstyle(1,0,1);
 outtextxy(50,160," WELCOME TO GRAPHICS ");
  settextstyle(2,0,5);
  outtextxy(50,190," WELCOME TO GRAPHICS ");
   settextstyle(3,0,1);
  outtextxy(50,210," WELCOME TO GRAPHICS ");
   settextstyle(4,0,1);
  outtextxy(50,230," WELCOME TO GRAPHICS ");
 getch();
}

 

Leave a Reply