bold font in c 2b 2b

Solutions on MaxInterview for bold font in c 2b 2b by the best coders in the world

showing results for - "bold font in c 2b 2b"
Lena
20 Apr 2017
1// C++ implementation for 
2// settextstyle() function 
3#include <graphics.h> 
4
5// driver code 
6int main() 
7{ 
8	// gm is Graphics mode which is 
9	// a computer display mode that 
10	// generates image using pixels. 
11	// DETECT is a macro defined in 
12	// "graphics.h" header file 
13	int gd = DETECT, gm; 
14
15	// initgraph initializes the 
16	// graphics system by loading 
17	// a graphics driver from disk 
18	initgraph(&gd, &gm, ""); 
19
20	// location of text 
21	int x = 150; 
22	int y = 150; 
23
24	// font style 
25	int font = 8; 
26
27	// font direction 
28	int direction = 0; 
29
30	// font size 
31	int font_size = 5; 
32
33	// for setting text style 
34	settextstyle(font, direction, font_size); 
35
36	// for printing text in graphics window 
37	outtextxy(x, y, "Geeks For Geeks"); 
38
39	getch(); 
40	
41	// closegraph function closes the 
42	// graphics mode and deallocates 
43	// all memory allocated by graphics 
44	// system . 
45	closegraph(); 
46	
47	return 0; 
48} 
49//author: @Zenonymous