ROOT
6.07/01
Reference Guide
|
Text Attributes class.
This class is used (in general by secondary inheritance) by many other classes (graphics, histograms). It holds all the text attributes.
Text attributes are:
The text alignment is an integer number (align
) allowing to control the horizontal and vertical position of the text string with respect to the text position. The text alignment of any class inheriting from TAttText
can be changed using the method SetTextAlign
and retrieved using the method GetTextAlign
.
For horizontal alignment the following convention applies:
For vertical alignment the following convention applies:
For example:
Text angle in degrees. The text angle of any class inheriting from TAttText
can be changed using the method SetTextAngle
and retrieved using the method GetTextAngle
. The following picture shows the text angle:
Mnemonic constants are available:
They allow to write:
The text color is a color index (integer) pointing in the ROOT color table. The text color of any class inheriting from TAttText
can be changed using the method SetTextColor
and retrieved using the method GetTextColor
. The following table shows the first 50 default colors.
SetTextColorAlpha()
, allows to set a transparent color. In the following example the text color of the text text
is set to blue with a transparency of 35%. The color kBlue
itself remains fully opaque.
The transparency is available on all platforms when the flagOpenGL.CanvasPreferGL
is set to 1
in $ROOTSYS/etc/system.rootrc
, or on Mac with the Cocoa backend. On the file output it is visible with PDF, PNG, Gif, JPEG, SVG ... but not PostScript.
If the text precision (see next paragraph) is smaller than 3, the text size (textsize
) is a fraction of the current pad size. Therefore the same textsize
value can generate text outputs with different absolute sizes in two different pads. The text size in pixels (charheight
) is computed the following way:
If the text precision is equal to 3, the text size doesn't depend on the pad's dimensions. A given textsize
value always generates the same absolute size. The text size (charheight
) is given in pixels:
Note that to scale fonts to the same size as the old True Type package a scale factor of 0.93376068
is apply to the text size before drawing.
The text size of any class inheriting from TAttText
can be changed using the method SetTextSize
and retrieved using the method GetTextSize
.
The text font code is combination of the font number and the precision.
Font numbers must be between 1 and 14.
The precision can be:
precision = 0
fast hardware fonts (steps in the size)precision = 1
scalable and rotatable hardware fonts (see below)precision = 2
scalable and rotatable hardware fontsprecision = 3
scalable and rotatable hardware fonts. Text size is given in pixels.The text font and precision of any class inheriting from TAttText
can be changed using the method SetTextFont
and retrieved using the method GetTextFont
.
When precision 0 is used, only the original non-scaled system fonts are used. The fonts have a minimum (4) and maximum (37) size in pixels. These fonts are fast and are of good quality. Their size varies with large steps and they cannot be rotated. Precision 1 and 2 fonts have a different behaviour depending if the True Type Fonts (TTF) are used or not. If TTF are used, you always get very good quality scalable and rotatable fonts. However TTF are slow.
One can activate the TTF by adding (or activating) the following line in the .rootrc
file:
It is possible to check the TTF are in use in a Root session with the command:
If the TTF are in use the following line will appear at the beginning of the printout given by this command:
The following picture shows how each font looks. The number on the left is the "text font code". In this picture precision 2 was selected.
Definition at line 32 of file TAttText.h.
Public Member Functions | |
TAttText () | |
TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) | |
AttText normal constructor. More... | |
virtual | ~TAttText () |
AttText destructor. More... | |
void | Copy (TAttText &atttext) const |
Copy this text attributes to a new TAttText. More... | |
virtual Short_t | GetTextAlign () const |
virtual Float_t | GetTextAngle () const |
virtual Color_t | GetTextColor () const |
virtual Font_t | GetTextFont () const |
virtual Float_t | GetTextSize () const |
virtual void | Modify () |
Change current text attributes if necessary. More... | |
virtual void | ResetAttText (Option_t *toption="") |
Reset this text attributes to default values. More... | |
virtual void | SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1) |
Save text attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetTextAttributes () |
Invoke the DialogCanvas Text attributes. More... | |
virtual void | SetTextAlign (Short_t align=11) |
virtual void | SetTextAngle (Float_t tangle=0) |
virtual void | SetTextColor (Color_t tcolor=1) |
virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
Set a transparent marker color. More... | |
virtual void | SetTextFont (Font_t tfont=62) |
virtual void | SetTextSize (Float_t tsize=1) |
virtual void | SetTextSizePixels (Int_t npixels) |
Set the text size in pixels. More... | |
Protected Attributes | |
Float_t | fTextAngle |
Float_t | fTextSize |
Short_t | fTextAlign |
Color_t | fTextColor |
Font_t | fTextFont |
#include <TAttText.h>
TAttText::TAttText | ( | ) |
AttText normal constructor.
Text attributes are taken from the argument list.
Definition at line 272 of file TAttText.cxx.
|
virtual |
AttText destructor.
Definition at line 284 of file TAttText.cxx.
Copy this text attributes to a new TAttText.
Definition at line 291 of file TAttText.cxx.
Referenced by TPaveLabel::Copy(), TLegend::Copy(), TLegendEntry::Copy(), TText::Copy(), TStyle::Copy(), TLatex::DrawLatex(), TMathText::DrawMathText(), TText::DrawText(), TPaveLabel::TPaveLabel(), and TStyle::TStyle().
|
inlinevirtual |
Reimplemented in TGWin32VirtualXProxy.
Definition at line 46 of file TAttText.h.
Referenced by TASImage::DrawText(), TPaveText::GetObject(), TPaveStats::Paint(), TPad::PaintDate(), TGLAxis::PaintGLAxisLabels(), TLatex::PaintLatex1(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TText::Print(), TPaveText::SaveLines(), TStyle::SavePrimitive(), TAttTextEditor::SetModel(), and TStyleManager::UpdateEditor().
|
inlinevirtual |
Reimplemented in TGWin32VirtualXProxy.
Definition at line 47 of file TAttText.h.
Referenced by TASImage::DrawText(), TLatex::GetBoundingBox(), TMathText::GetXsize(), TLatex::GetXsize(), TMathText::GetYsize(), TPaveStats::Paint(), TMathText::Paint(), TPie::Paint(), TLatex::Paint(), TGaxis::PaintAxis(), TPad::PaintDate(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TText::Print(), TPaveText::SaveLines(), TPie::SavePrimitive(), TStyle::SavePrimitive(), TTextEditor::SetModel(), and TStyleManager::UpdateEditor().
|
inlinevirtual |
Reimplemented in TGWin32VirtualXProxy.
Definition at line 48 of file TAttText.h.
Referenced by TAttTextEditor::DoAlpha(), TAttTextEditor::DoAlphaField(), TAttTextEditor::DoLiveAlpha(), TGQuartz::DrawText(), TASImage::DrawText(), TLatex::FirstParse(), TAttTextEditor::GetCurAlpha(), TPaveStats::Paint(), TGraphNode::Paint(), TPie::Paint(), TGaxis::PaintAxis(), TPad::PaintDate(), TGLAxis::PaintGLAxisLabels(), TGLText::PaintGLText(), TLatex::PaintLatex1(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TText::Print(), TGQuartz::RenderTTFString(), TPaveText::SaveLines(), TPie::SavePrimitive(), TGaxis::SavePrimitive(), TStyle::SavePrimitive(), TAttTextEditor::SetModel(), TPieEditor::SetModel(), TStyleManager::UpdateEditor(), TPaveStats::UseCurrentStyle(), TPaveText::UseCurrentStyle(), and TPad::UseCurrentStyle().
|
inlinevirtual |
Reimplemented in TGWin32VirtualXProxy.
Definition at line 49 of file TAttText.h.
Referenced by TLatex::Analyse(), TPieEditor::DoTextChange(), TGQuartz::DrawText(), TASImage::DrawText(), TLatex::FirstParse(), TGQuartz::GetFontAscent(), TGQuartz::GetFontDescent(), TGQuartz::GetTextExtent(), TStyleManager::ModAttDateTextFont(), TStyleManager::ModAttDateTextSizeInPixels(), TStyleManager::ModTextFont(), TStyleManager::ModTextSizeInPixels(), TPaveStats::Paint(), TGraphNode::Paint(), TPie::Paint(), TGaxis::PaintAxis(), TPad::PaintDate(), TGLAxis::PaintGLAxisLabels(), TLatex::PaintLatex1(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), THistPainter::PaintText(), THistPainter::PaintTH2PolyText(), TText::Print(), TAttTextEditor::ProcessMessage(), TRecorderRecording::RecordPave(), TRecorderRecording::RecordText(), TPaveText::SaveLines(), TPie::SavePrimitive(), TGaxis::SavePrimitive(), TStyle::SavePrimitive(), TLegend::SetHeader(), TAttTextEditor::SetModel(), TPieEditor::SetModel(), TStyleManager::UpdateEditor(), TPaveStats::UseCurrentStyle(), TPaveText::UseCurrentStyle(), and TPad::UseCurrentStyle().
|
inlinevirtual |
Reimplemented in TGWin32VirtualXProxy.
Definition at line 50 of file TAttText.h.
Referenced by TGQuartz::DrawText(), TASImage::DrawText(), TGroupButton::ExecuteAction(), TMathText::GetBoundingBox(), TLatex::GetBoundingBox(), TGQuartz::GetFontAscent(), TGQuartz::GetFontDescent(), TPaveText::GetObject(), TGQuartz::GetTextExtent(), TMathText::GetXsize(), TLatex::GetXsize(), TMathText::GetYsize(), TLatex::GetYsize(), TStyleManager::ModAttDateTextSizeInPixels(), TStyleManager::ModTextSizeInPixels(), TPaveStats::Paint(), TMathText::Paint(), TGraphNode::Paint(), TPie::Paint(), TSpider::Paint(), TLatex::Paint(), TGaxis::PaintAxis(), TPad::PaintDate(), TGLText::PaintGLText(), TParallelCoordVar::PaintLabels(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TText::Print(), TRecorderRecording::RecordPave(), TRecorderRecording::RecordText(), TPaveText::SaveLines(), TPie::SavePrimitive(), TStyle::SavePrimitive(), TTextEditor::SetModel(), TAttTextEditor::SetModel(), TPieEditor::SetModel(), TPaveStats::UseCurrentStyle(), and TPaveText::UseCurrentStyle().
|
virtual |
Change current text attributes if necessary.
Definition at line 303 of file TAttText.cxx.
Referenced by TLatex::Analyse(), TText::DistancetoPrimitive(), TText::ExecuteEvent(), TText::Paint(), TLatex::PaintLatex(), TMathText::PaintMathText(), TText::PaintText(), and TText::PaintTextNDC().
Reset this text attributes to default values.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 332 of file TAttText.cxx.
Referenced by TStyle::Reset().
|
virtual |
Save text attributes as C++ statement(s) on output stream out.
Definition at line 344 of file TAttText.cxx.
Referenced by TGraphNode::SaveAttributes(), TLegendEntry::SaveEntry(), TPavesText::SavePrimitive(), TDiamond::SavePrimitive(), TPaveClass::SavePrimitive(), TGroupButton::SavePrimitive(), TPaveLabel::SavePrimitive(), TPaveStats::SavePrimitive(), TButton::SavePrimitive(), TMathText::SavePrimitive(), TLegend::SavePrimitive(), TPaveText::SavePrimitive(), TText::SavePrimitive(), and TLatex::SavePrimitive().
Reimplemented in TGWin32, TGX11, TVirtualX, TGWin32VirtualXProxy, and TGQuartz.
Definition at line 55 of file TAttText.h.
Referenced by accents(), TPaveText::AddText(), AddText(), alignment(), TLatex::Analyse(), bars(), benchmarks(), box(), canvas_write(), complex_1(), composite(), cone(), coneseg(), TDocLatexDirective::CreateLatex(), ctub(), demoshelp(), TMarker::DisplayMarkerTypes(), TGenerator::Draw(), TMVA::draw_input_labels(), TMVA::draw_network(), TGaxis::DrawAxis(), TPad::DrawClassObject(), TPad::DrawColorTable(), TMVA::DrawMLPoutputMovie(), TTreePlayer::DrawSelect(), drawtext(), eltu(), TLatex::FirstParse(), fit1(), fractions(), greekletters(), gtra(), help(), hype(), ideal(), TInspectCanvas::InspectObject(), itbold(), kerning(), mathsymbols(), TStyleManager::ModAttDateTextAlign(), TStyleManager::ModTextAlign(), TPaveStats::Paint(), TGraphNode::Paint(), TColorWheel::Paint(), TTreePerfStats::Paint(), TSpider::Paint(), TGaxis::PaintAxis(), TColorWheel::PaintCircle(), TColorWheel::PaintCircles(), TGLAxis::PaintGLAxisLabels(), TColorWheel::PaintGray(), TParallelCoordVar::PaintLabels(), TLatex::PaintLatex1(), TMathText::PaintMathText(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TGraphPolargram::PaintPolarDivisions(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TColorWheel::PaintRectangles(), THistPainter::PaintStat(), THistPainter::PaintStat2(), THistPainter::PaintStat3(), TGraphPainter::PaintStats(), THistPainter::PaintText(), THistPainter::PaintTH2PolyText(), para(), parab(), pcon(), pgon(), TAttTextEditor::ProcessMessage(), RadioNuclides(), TPaveText::ReadFile(), TMVA::regression_averagedevs(), TStyle::Reset(), roots(), s_difference(), s_intersection(), s_union(), TPaveText::SetAllWith(), TPad::SetAttTextPS(), TLegend::SetHeader(), TStyle::SetOptDate(), TGQuartz::SetTextAlign(), TGX11::SetTextAlign(), TGWin32::SetTextAlign(), TMemStatShow::Show(), SimpleFitting(), slash(), splitline(), style(), subsupscript(), subsupscript2(), TImageDump::Text(), TLegend::TLegend(), transp_text(), trap(), trd1(), trd2(), tube(), tubeseg(), and xtru().
Reimplemented in TGWin32VirtualXProxy, and TGraphNode.
Definition at line 56 of file TAttText.h.
Referenced by TLatex::Analyse(), TTextEditor::DoAngle(), TGaxis::DrawAxis(), TText::ExecuteEvent(), TLatex::FirstParse(), TLatex::GetXsize(), TInspectCanvas::InspectObject(), TStyleManager::ModAttDateTextAngle(), TStyleManager::ModTextAngle(), TColorWheel::Paint(), THistPainter::PaintAxis(), TGaxis::PaintAxis(), TColorWheel::PaintCircles(), TColorWheel::PaintGray(), TLatex::PaintLatex(), TLatex::PaintLatex1(), TMathText::PaintMathText(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TColorWheel::PaintRectangles(), THistPainter::PaintText(), THistPainter::PaintTH2PolyText(), TPaveText::ReadFile(), TPaveText::SetAllWith(), TPad::SetAttTextPS(), TLegend::SetHeader(), TImageDump::Text(), TLegend::TLegend(), TMVA::variables(), and TMVA::variablesMultiClass().
|
virtual |
Invoke the DialogCanvas Text attributes.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 372 of file TAttText.cxx.
Referenced by TLegend::EditEntryAttText(), and TPaveText::EditText().
Reimplemented in TGWin32, TGX11, TVirtualX, TPostScript, TGWin32VirtualXProxy, TPDF, TTeXDump, TGQuartz, and TSVG.
Definition at line 57 of file TAttText.h.
Referenced by TPaveText::AddText(), AddText(), TLatex::Analyse(), arb8(), bexec(), bexec2(), TMVA::boostcontrolplots(), box(), complex_1(), composite(), cone(), coneseg(), ctub(), demoshelp(), TAttTextEditor::DoLiveAlpha(), TAttTextEditor::DoTextAlphaColor(), TPieEditor::DoTextChange(), TAttTextEditor::DoTextColor(), TGenerator::Draw(), TMVA::draw_input_labels(), TMVA::draw_layer_labels(), TMVA::draw_network(), TGaxis::DrawAxis(), TMVA::DrawCell(), TPad::DrawClassObject(), TPad::DrawColorTable(), TMVA::DrawMLPoutputMovie(), TMVA::StatDialogBDTReg::DrawNode(), TTreePlayer::DrawSelect(), TMVA::StatDialogBDTReg::DrawTree(), TMVA::StatDialogBDT::DrawTree(), eltu(), TLatex::FirstParse(), gtra(), help(), hype(), ideal(), TGaxis::ImportAxisAttributes(), TInspectCanvas::InspectObject(), TStyleManager::ModAttDateTextColor(), TStyleManager::ModTextColor(), mp3player(), TPaveStats::Paint(), TGraphNode::Paint(), TColorWheel::Paint(), TPie::Paint(), TAxis3D::PaintAxis(), TGaxis::PaintAxis(), TColorWheel::PaintCircle(), TColorWheel::PaintCircles(), TGLAxis::PaintGLAxisLabels(), TGraphPainter::PaintGrapHist(), TGraphPainter::PaintGraphPolar(), TColorWheel::PaintGray(), TLatex::PaintLatex1(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TGraphPolargram::PaintPolarDivisions(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TColorWheel::PaintRectangles(), THistPainter::PaintStat(), THistPainter::PaintStat2(), THistPainter::PaintStat3(), TGraphPainter::PaintStats(), THistPainter::PaintText(), THistPainter::PaintTH2PolyText(), THistPainter::PaintTitle(), para(), parab(), pcon(), pgon(), TAttTextEditor::ProcessMessage(), RadioNuclides(), TPaveText::ReadFile(), s_difference(), s_intersection(), s_union(), TPaveText::SetAllWith(), TPad::SetAttTextPS(), TLegend::SetHeader(), TGQuartz::SetTextColor(), TGX11::SetTextColor(), TGaxis::SetTitleColor(), TMemStatShow::Show(), sphere(), TestSPlot(), TImageDump::Text(), TLegend::TLegend(), torus(), TPie::TPie(), transp_text(), trap(), trd1(), trd2(), tube(), tubeseg(), TPaveStats::UseCurrentStyle(), TPaveText::UseCurrentStyle(), TPad::UseCurrentStyle(), and xtru().
Set a transparent marker color.
talpha defines the percentage of the color opacity from 0. (fully transparent) to 1. (fully opaque).
Definition at line 382 of file TAttText.cxx.
Reimplemented in TGX11, TGWin32, TVirtualX, TGWin32VirtualXProxy, TGQuartz, and TGX11TTF.
Definition at line 59 of file TAttText.h.
Referenced by accents(), TPaveText::AddText(), alignment(), TLatex::Analyse(), bars(), TDocLatexDirective::CreateLatex(), demoshelp(), TMarker::DisplayMarkerTypes(), TPieEditor::DoTextChange(), TGaxis::DrawAxis(), TPad::DrawClassObject(), TPad::DrawColorTable(), TTreePlayer::DrawSelect(), drawtext(), TLatex::FirstParse(), FittingDemo(), fractions(), help(), TGaxis::ImportAxisAttributes(), TInspectCanvas::InspectObject(), itbold(), kerning(), TStyleManager::ModAttDateTextFont(), TStyleManager::ModAttDateTextSizeInPixels(), TStyleManager::ModTextFont(), TStyleManager::ModTextSizeInPixels(), TPaveStats::Paint(), TGraphNode::Paint(), TColorWheel::Paint(), TPie::Paint(), TAxis3D::PaintAxis(), TGaxis::PaintAxis(), TColorWheel::PaintCircles(), TGraphPainter::PaintGrapHist(), TGraphPainter::PaintGraphPolar(), TColorWheel::PaintGray(), TLatex::PaintLatex1(), TMathText::PaintMathText(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TGraphPolargram::PaintPolarDivisions(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TColorWheel::PaintRectangles(), THistPainter::PaintStat(), THistPainter::PaintStat2(), THistPainter::PaintStat3(), TGraphPainter::PaintStats(), THistPainter::PaintText(), THistPainter::PaintTH2PolyText(), THistPainter::PaintTitle(), TAttTextEditor::ProcessMessage(), TPaveText::ReadFile(), roots(), TPaveText::SetAllWith(), TPad::SetAttTextPS(), TLegend::SetHeader(), TGQuartz::SetTextFont(), TGaxis::SetTitleFont(), slash(), splitline(), style(), subsupscript(), subsupscript2(), TestSPlot(), TImageDump::Text(), TPDF::Text(), TPostScript::Text(), TLegend::TLegend(), TPaveClass::TPaveClass(), TPie::TPie(), TPaveStats::UseCurrentStyle(), TPaveText::UseCurrentStyle(), and TPad::UseCurrentStyle().
Reimplemented in TGX11, TGWin32, TVirtualX, TGWin32VirtualXProxy, TGQuartz, and TGX11TTF.
Definition at line 60 of file TAttText.h.
Referenced by accents(), TPaveText::AddText(), alignment(), TLatex::Analyse(), arb8(), bars(), benchmarks(), TMVA::boostcontrolplots(), box(), TDialogCanvas::BuildStandardButtons(), complex_1(), composite(), cone(), coneseg(), TMVA::correlations(), TMVA::correlationsMultiClass(), TDocLatexDirective::CreateLatex(), ctub(), TMarker::DisplayMarkerTypes(), TTextEditor::DoSize(), TPieEditor::DoTextChange(), TGenerator::Draw(), TMVA::draw_input_labels(), TMVA::draw_network(), TGaxis::DrawAxis(), TPad::DrawClassObject(), TPad::DrawColorTable(), TMVA::StatDialogMVAEffs::DrawHistograms(), TMVA::DrawMLPoutputMovie(), TTreePlayer::DrawSelect(), drawtext(), eltu(), TText::ExecuteEvent(), TLatex::FirstParse(), FittingDemo(), fractions(), greekletters(), gtra(), hype(), ideal(), TInspectCanvas::InspectObject(), itbold(), kerning(), mathsymbols(), memstatExample(), TStyleManager::ModAttDateTextSize(), TStyleManager::ModAttDateTextSizeInPixels(), TStyleManager::ModTextSize(), TStyleManager::ModTextSizeInPixels(), mp3player(), TMVA::mvas(), TPaveStats::Paint(), TColorWheel::Paint(), TTreePerfStats::Paint(), TPie::Paint(), TSpider::Paint(), TGaxis::PaintAxis(), TColorWheel::PaintCircle(), TColorWheel::PaintCircles(), TClassTree::PaintClass(), TPad::PaintDate(), TGLAxis::PaintGLAxisLabels(), TGraphPainter::PaintGraphPolar(), TColorWheel::PaintGray(), TParallelCoordVar::PaintLabels(), TLatex::PaintLatex1(), TMathText::PaintMathText(), TButton::PaintModified(), TPaveLabel::PaintPaveLabel(), TLegend::PaintPrimitives(), TPaveText::PaintPrimitives(), TColorWheel::PaintRectangles(), THistPainter::PaintStat(), THistPainter::PaintStat2(), TGraphPainter::PaintStats(), THistPainter::PaintText(), THistPainter::PaintTH2PolyText(), THistPainter::PaintTitle(), para(), parab(), pcon(), pgon(), TAttTextEditor::ProcessMessage(), RadioNuclides(), TPaveText::ReadFile(), TMVA::regression_averagedevs(), TStyle::Reset(), roots(), s_difference(), s_intersection(), s_union(), TPaveText::SetAllWith(), TPad::SetAttTextPS(), TLegend::SetHeader(), TGQuartz::SetTextSize(), TMemStatShow::Show(), slash(), sphere(), splitline(), style(), subsupscript(), subsupscript2(), TImageDump::Text(), TPDF::Text(), TPostScript::Text(), TLegend::TLegend(), torus(), TPie::TPie(), transp_text(), trap(), trd1(), trd2(), tube(), tubeseg(), TPaveStats::UseCurrentStyle(), TPaveText::UseCurrentStyle(), TMVA::variables(), TMVA::variablesMultiClass(), and xtru().
Set the text size in pixels.
If the font precision is greater than 2, the text size is set to npixels, otherwise the text size is computed as a percent of the pad size.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 393 of file TAttText.cxx.
|
protected |
Definition at line 37 of file TAttText.h.
Referenced by TGQuartz::AlignTTFString(), Copy(), TGaxis::DrawAxis(), TText::ExecuteEvent(), TLatex::FirstParse(), TText::GetBBox(), TText::GetControlBox(), GetTextAlign(), Modify(), TText::PaintControlBox(), TGLText::PaintGLText(), TLatex::PaintLatex1(), TMathText::PaintMathText(), ResetAttText(), SaveTextAttributes(), SetTextAlign(), SetTextAttributes(), TAttText(), TImageDump::Text(), TSVG::Text(), TTeXDump::Text(), TPDF::Text(), and TPostScript::Text().
|
protected |
Definition at line 35 of file TAttText.h.
Referenced by TLatex::Analyse(), Copy(), TText::DistancetoPrimitive(), TGaxis::DrawAxis(), TText::ExecuteEvent(), TText::GetBoundingBox(), TLatex::GetBoundingBox(), GetTextAngle(), TLatex::GetYsize(), Modify(), ResetAttText(), SaveTextAttributes(), TGX11::SetCharacterUp(), TGWin32::SetCharacterUp(), SetTextAngle(), SetTextAttributes(), TAttText(), TImageDump::Text(), TSVG::Text(), TTeXDump::Text(), TPDF::Text(), and TPostScript::Text().
|
protected |
Definition at line 38 of file TAttText.h.
Referenced by Copy(), TGaxis::DrawAxis(), GetTextColor(), Modify(), ResetAttText(), SaveTextAttributes(), SetTextAttributes(), SetTextColor(), TSVG::SetTextColor(), TTeXDump::SetTextColor(), TPDF::SetTextColor(), TPostScript::SetTextColor(), SetTextColorAlpha(), TAttText(), TImageDump::Text(), TSVG::Text(), TTeXDump::Text(), TPDF::Text(), and TPostScript::Text().
|
protected |
Definition at line 39 of file TAttText.h.
Referenced by TLatex::Analyse(), Copy(), TGaxis::DrawAxis(), TLatex::FirstParse(), TText::GetBoundingBox(), TText::GetTextAdvance(), TText::GetTextAscentDescent(), TText::GetTextExtent(), GetTextFont(), Modify(), TLatex::PaintLatex1(), TMathText::PaintMathText(), ResetAttText(), SaveTextAttributes(), SetTextAttributes(), SetTextFont(), TGX11TTF::SetTextFont(), TGWin32::SetTextFont(), TGX11::SetTextFont(), SetTextSizePixels(), TAttText(), TImageDump::Text(), TSVG::Text(), TPDF::Text(), and TPostScript::Text().
|
protected |
Definition at line 36 of file TAttText.h.
Referenced by Copy(), TGaxis::DrawAxis(), TText::ExecuteEvent(), TText::GetTextAdvance(), TText::GetTextAscentDescent(), TText::GetTextExtent(), TGWin32::GetTextExtent(), GetTextSize(), Modify(), TGWin32::RequestString(), ResetAttText(), SaveTextAttributes(), SetTextAttributes(), SetTextSize(), TGX11TTF::SetTextSize(), TGWin32::SetTextSize(), TGX11::SetTextSize(), SetTextSizePixels(), TAttText(), TImageDump::Text(), TSVG::Text(), TTeXDump::Text(), TPDF::Text(), and TPostScript::Text().