CRtext_size: Predicts text dimensions.

View source: R/CRtext_size.R

CRtext_sizeR Documentation

Predicts text dimensions.

Description

Calculates width and height of un-wrapped text when rendered using the indexed font in font_list.

Usage

CRtext_size(font_list, index, text, status = NULL)

Arguments

font_list

List of fonts loaded with CRload_font().

index

Index into font_list, specifying which font to use.

text

Character vector specifying text to be drawn.

Value

Returns a list with elements width and height.


lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.