142 Float_t llx, lly, llz, urx, ury, urz;
145 glVertex3f( 0, 0, 0); glVertex3f( urx, 0, 0);
146 glVertex3f( 0, 0, 0); glVertex3f( 0, ury, 0);
147 glVertex3f( 0, ury, 0); glVertex3f( urx, ury, 0);
148 glVertex3f( urx, ury, 0); glVertex3f( urx, 0, 0);
176 int fontid = fontnumber / 10;
178 const char *fontname=0;
179 if (fontid == 0) fontname =
"arialbd.ttf";
180 if (fontid == 1) fontname =
"timesi.ttf";
181 if (fontid == 2) fontname =
"timesbd.ttf";
182 if (fontid == 3) fontname =
"timesbi.ttf";
183 if (fontid == 4) fontname =
"arial.ttf";
184 if (fontid == 5) fontname =
"ariali.ttf";
185 if (fontid == 6) fontname =
"arialbd.ttf";
186 if (fontid == 7) fontname =
"arialbi.ttf";
187 if (fontid == 8) fontname =
"cour.ttf";
188 if (fontid == 9) fontname =
"couri.ttf";
189 if (fontid == 10) fontname =
"courbd.ttf";
190 if (fontid == 11) fontname =
"courbi.ttf";
191 if (fontid == 12) fontname =
"symbol.ttf";
192 if (fontid == 13) fontname =
"times.ttf";
193 if (fontid == 14) fontname =
"wingding.ttf";
196 const char *ttpath =
gEnv->GetValue(
"Root.TTFontPath",
197 TROOT::GetTTFFontDir());
207 Error(
"SetGLTextFont",
"Cannot set FTGL::FaceSize");
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
virtual Float_t GetTextSize() const
Return the text size.
virtual Color_t GetTextColor() const
Return the text color.
void PaintBBox(const char *text)
void SetGLTextAngles(Double_t a1, Double_t a2, Double_t a3)
Set the text rotation angles.
void PaintGLText(Double_t x, Double_t y, Double_t z, const char *text)
Draw text.
void BBox(const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
Calculate bounding-box for given string.
void SetGLTextFont(Font_t fontnumber)