19#include "TGLIncludes.h"
24# include <FTGL/ftgl.h>
27# include "FTGLExtrdFont.h"
28# include "FTGLOutlineFont.h"
29# include "FTGLPolygonFont.h"
30# include "FTGLTextureFont.h"
31# include "FTGLPixmapFont.h"
32# include "FTGLBitmapFont.h"
99 glTranslatef(
x,
y, z);
106 Float_t llx, lly, llz, urx, ury, urz;
112 case 1 : dx = 0 ;
break;
113 case 2 : dx = -urx/2;
break;
114 case 3 : dx = -urx ;
break;
117 case 1 : dy = 0 ;
break;
118 case 2 : dy = -ury/2;
break;
119 case 3 : dy = -ury ;
break;
121 glTranslatef(dx, dy, 0);
143 Float_t llx, lly, llz, urx, ury, urz;
146 glVertex3f( 0, 0, 0); glVertex3f( urx, 0, 0);
147 glVertex3f( 0, 0, 0); glVertex3f( 0, ury, 0);
148 glVertex3f( 0, ury, 0); glVertex3f( urx, ury, 0);
149 glVertex3f( urx, ury, 0); glVertex3f( urx, 0, 0);
157 float& urx,
float& ury,
float& urz)
159 fGLTextFont->BBox(
string, llx, lly, llz, urx, ury, urz);
180 if (fontid == 0)
fontname =
"arialbd.ttf";
181 if (fontid == 1)
fontname =
"timesi.ttf";
182 if (fontid == 2)
fontname =
"timesbd.ttf";
183 if (fontid == 3)
fontname =
"timesbi.ttf";
184 if (fontid == 4)
fontname =
"arial.ttf";
185 if (fontid == 5)
fontname =
"ariali.ttf";
186 if (fontid == 6)
fontname =
"arialbd.ttf";
187 if (fontid == 7)
fontname =
"arialbi.ttf";
188 if (fontid == 8)
fontname =
"cour.ttf";
189 if (fontid == 9)
fontname =
"couri.ttf";
190 if (fontid == 10)
fontname =
"courbd.ttf";
191 if (fontid == 11)
fontname =
"courbi.ttf";
192 if (fontid == 12)
fontname =
"symbol.ttf";
193 if (fontid == 13)
fontname =
"times.ttf";
194 if (fontid == 14)
fontname =
"wingding.ttf";
208 Error(
"SetGLTextFont",
"Cannot set FTGL::FaceSize");
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t fontnumber
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char fontname
Option_t Option_t TPoint TPoint const char text
R__EXTERN TSystem * gSystem
virtual Float_t GetTextSize() const
Return the text size.
virtual Color_t GetTextColor() const
Return the text color.
Short_t fTextAlign
Text alignment.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
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)
static void Color(const TGLColor &color)
Set color from TGLColor.
static const TString & GetTTFFontDir()
Get the fonts directory in the installation. Static utility function.
virtual char * Which(const char *search, const char *file, EAccessMode mode=kFileExists)
Find location of file in a search path.