Program to show the working of settextstyle with different fonts in vertical 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,1,1); //(font,direction,charsize)
outtextxy(50,70," WELCOME TO GRAPHICS ");

settextstyle(1,1,1);
outtextxy(100,70," WELCOME TO GRAPHICS ");

settextstyle(2,1,5);
outtextxy(150,70," WELCOME TO GRAPHICS ");

settextstyle(3,1,1);
outtextxy(200,70," WELCOME TO GRAPHICS ");

settextstyle(4,1,1);
outtextxy(250,70," WELCOME TO GRAPHICS ");
 getch();
}

Leave a Reply