str_metrics: Get font metrics for a string.

Description Usage Arguments Value Examples

View source: R/cpp-proxies.R

Description

Get font metrics for a string.

Usage

1
2
str_metrics(x, fontname = "sans", fontsize = 12, bold = FALSE,
  italic = FALSE, fontfile = "")

Arguments

x

Character vector of strings to measure

fontname

Font name

fontsize

Font size

bold

Is text bold/italic?

italic

Is text bold/italic?

fontfile

Font file

Value

A named numeric vector

Examples

1
str_metrics("Hello World!")

gdtools documentation built on April 3, 2020, 5:19 p.m.

Related to str_metrics in gdtools...