24#include "ROOT/RText.hxx"
35 auto drawText = [&canvas, &posy](
RAttrFont::EFont font,
bool is_comic =
false) {
36 auto text = canvas->Add<RText>(
RPadPos(0.35, posy),
"ABCDEFGH abcdefgh 0123456789 @#$");
37 text->text.size = 0.04;
40 text->text.font.family =
"Comic";
42 text->text.font = font;
44 auto name = canvas->Add<RText>(
RPadPos(0.33, posy),
text->text.font.GetFullName());
45 name->text.size = 0.03;
74 std::string fname = __FILE__;
75 auto pos = fname.find(
"rtext_font.cxx");
78 fname.append(
"comic.woff2");
80 fname =
"comic.woff2";
81 canvas->Draw<RFont>(
"Comic", fname);
Option_t Option_t TPoint TPoint const char text
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.
A position (horizontal and vertical) in a RPad.
Namespace for ROOT features in testing.