7 #include "TGResourcePool.h" 14 static TGGC s_boldGC(*gClient->GetResourcePool()->GetFrameGC());
16 TGFontPool *
pool = gClient->GetFontPool();
29 TGFont* newFont = pool->GetFont(
"-*-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-1");
34 s_boldGC.SetFont(newFont->GetFontHandle());
41 static TGGC s_greenGC(*gClient->GetResourcePool()->GetFrameGC());
42 s_greenGC.SetForeground(gVirtualX->GetPixel(kGreen-5));
48 static TGGC s_redGC(*gClient->GetResourcePool()->GetFrameGC());
49 s_redGC.SetForeground(gVirtualX->GetPixel(kRed-5));
55 static TGGC s_italicGC(*gClient->GetResourcePool()->GetFrameGC());
57 TGFontPool *
pool = gClient->GetFontPool();
58 TGFont *font = pool->FindFontByHandle(s_italicGC.GetFont());
59 FontAttributes_t attributes = font->GetFontAttributes();
61 attributes.fSlant = 1;
62 TGFont *newFont = pool->GetFont(attributes.fFamily, 9,
63 attributes.fWeight, attributes.fSlant);
65 s_italicGC.SetFont(newFont->GetFontHandle());