24#include "ROOT/RText.hxx"
31 auto canvas = RCanvas::Create(
"RText fonts example");
37 text->text.size = 0.04;
38 text->text.align = RAttrText::kLeftCenter;
40 text->text.font.family =
"Comic";
42 text->text.font = font;
45 name->text.size = 0.03;
46 name->text.align = RAttrText::kRightCenter;
54 drawText(RAttrFont::kTimesBoldItalic);
59 drawText(RAttrFont::kArialBoldOblique);
62 drawText(RAttrFont::kCourierOblique);
64 drawText(RAttrFont::kCourierBoldOblique);
69 drawText(RAttrFont::kVerdanaBoldItalic);
75 auto pos =
fname.find(
"rtext_font.cxx");
76 if (pos > 0) {
fname.resize(pos);
fname.append(
"comic.woff2"); }
77 else fname =
"comic.woff2";
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char text
A position (horizontal and vertical) in a RPad.