41{
42
43 cout << "\n\n\n==========================================================\n";
44 cout << "Testing the PFont Class\n";
45 cout << "==========================================================\n";
46
47 cout << "==========================================================\n";
48 cout << "Constructing Colors\n";
49
52
53 cout << "\n\n\n==========================================================\n";
54 cout << "Constructing Fonts\n";
57
58
59 cout << "\n\n==========================================================\n";
60 cout << "Printing standard font output." << endl;
61
62 cout << myFont1 << endl;
63 cout << myFont2 << endl;
64
65
66
67 cout << "\n\n==========================================================\n";
68 cout << "Printing font information:" << endl;
69
70
72 cout <<
"Font Style: " << myFont1.
GetFontStyle() << endl;
74 cout <<
" IsBold? " << myFont1.
IsBoldFont() << endl;
80 cout <<
"Font Size: " << myFont1.
GetFontSize() << endl;
81
82
83
84 cout << "Finished" << endl;
85 return 0;
86}
virtual PColor GetBackgroundColor() const
virtual int GetFontStyle() const
virtual bool IsItalicFont() const
virtual PColor GetFontColor() const
virtual std::string GetFontFileName() const
virtual bool IsUnderlineFont() const
virtual bool IsBoldFont() const
virtual bool GetAntiAliased() const
virtual int GetFontSize() const
virtual bool IsNormalFont() const