ROOT
Version master
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
v6.04
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
▼
core
▼
base
▼
doc
▼
macros
►
fillpatterns.C
►
fonts.C
►
textalign.C
►
textangle.C
►
inc
►
src
►
v7
►
clingutils
►
cont
►
dictgen
►
foundation
►
gui
►
imt
►
macosx
►
meta
►
metacling
►
multiproc
►
rint
►
testsupport
►
thread
►
unix
►
winnt
►
zip
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
fonts.C
Go to the documentation of this file.
1
void
drawtext
(
double
x
,
double
y
,
int
f
,
const
char
*s)
2
{
3
TLatex
*t =
new
TLatex
(
x
,
y
,
Form
(
"#font[41]{%d :} %s"
,
f
,s));
4
t->
SetTextFont
(
f
);
5
t->
SetTextAlign
(12);
6
t->
SetTextSize
(0.048);
7
t->
Draw
();
8
}
9
10
TCanvas
*
fonts
()
11
{
12
TCanvas
*
Tf
=
new
TCanvas
(
"Tf"
,
"Tf"
,0,0,500,700);
13
Tf
->Range(0,0,1,1);
14
Tf
->SetBorderSize(2);
15
Tf
->SetFrameFillColor(0);
16
17
double
y
= 0.95;
18
for
(
int
f
= 12;
f
<=152;
f
+=10) {
19
if
(
f
!=142)
drawtext
(0.02,
y
,
f
,
"ABCDEFGH abcdefgh 0123456789 @#$"
);
20
else
drawtext
(0.02,
y
,
f
,
"ABCD efgh 01234 @#$"
);
21
y
-= 0.065;
22
}
23
return
Tf
;
24
}
f
#define f(i)
Definition
RSha256.hxx:104
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
Form
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Definition
TString.cxx:2489
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TAttText::SetTextAlign
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition
TAttText.h:44
TAttText::SetTextFont
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition
TAttText.h:48
TAttText::SetTextSize
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition
TAttText.h:49
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TLatex
To draw Mathematical Formula.
Definition
TLatex.h:18
TObject::Draw
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Definition
TObject.cxx:292
fonts
TCanvas * fonts()
Definition
fonts.C:10
drawtext
void drawtext(double x, double y, int f, const char *s)
Definition
fonts.C:1
y
Double_t y[n]
Definition
legend1.C:17
x
Double_t x[n]
Definition
legend1.C:17
core
base
doc
macros
fonts.C
ROOT master - Reference Guide Generated on Thu Feb 20 2025 04:19:27 (GVA Time) using Doxygen 1.10.0