40 RFont(
const std::string &family,
const std::string &fname =
"",
const std::string &fmt =
"woff2") :
RFont()
58 void SetUrl(
const std::string &url,
const std::string &fmt =
"woff2");
59 void SetFile(
const std::string &fname,
const std::string &fmt =
"woff2");
60 void SetSrc(
const std::string &src);
RDrawable(const RDrawable &)=delete
RFont(const std::string &family, const std::string &fname="", const std::string &fmt="woff2")
void SetDefault(bool dflt=true)
void SetSrc(const std::string &src)
Set src attribute of font-face directly Only for expert use.
void SetWeight(const std::string &weight)
void SetFamily(const std::string &family)
void SetFile(const std::string &fname, const std::string &fmt="woff2")
Set font source as file content.
const std::string & GetSrc() const
const std::string & GetFamily() const
std::string fFamily
font family, assigned as "font-family" attribute
const std::string & GetStyle() const
void SetUrl(const std::string &url, const std::string &fmt="woff2")
Set font source as URL.
std::string fWeight
font weight, assigned as "font-weight" attribute, normal by default
const std::string & GetWeight() const
bool fDefault
is font set as default for the pad
std::string fSrc
font source, assigned as "src" attribute
void SetStyle(const std::string &style)
std::string fStyle
font style, assigned as "font-style" attribute, normal by default
Namespace for ROOT features in testing.
Small utility to parse cmdline options.