7 #include "TGResourcePool.h"
12 static TGGC s_boldGC(*gClient->GetResourcePool()->GetFrameGC());
14 TGFontPool*
pool = gClient->GetFontPool();
27 TGFont* newFont =
pool->GetFont(
"-*-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-1");
32 s_boldGC.SetFont(newFont->GetFontHandle());
38 static TGGC s_greenGC(*gClient->GetResourcePool()->GetFrameGC());
39 s_greenGC.SetForeground(gVirtualX->GetPixel(kGreen - 5));
44 static TGGC s_redGC(*gClient->GetResourcePool()->GetFrameGC());
45 s_redGC.SetForeground(gVirtualX->GetPixel(kRed - 5));
50 static TGGC s_italicGC(*gClient->GetResourcePool()->GetFrameGC());
52 TGFontPool*
pool = gClient->GetFontPool();
53 TGFont* font =
pool->FindFontByHandle(s_italicGC.GetFont());
54 FontAttributes_t attributes = font->GetFontAttributes();
56 attributes.fSlant = 1;
57 TGFont* newFont =
pool->GetFont(attributes.fFamily, 9, attributes.fWeight, attributes.fSlant);
59 s_italicGC.SetFont(newFont->GetFontHandle());