bdf_create_df: Create a data.frame of the given string and font

Description Usage Arguments Value

View source: R/print-bdf.R

Description

Create a data.frame of the given string and font

Usage

1
bdf_create_df(bdf, text, line_height = NULL)

Arguments

bdf

bdf font object as returned by read_bdf()

text

string

line_height

This value is used for vertical spacing between lines of text when the text is wrapped. If line_height is NULL, then use the pixel size speficied in the font. You may wish to set a value here if you to ensure ascenders/descenders do not overlap on subsequent lines, or just to space out the text a bit more.

Value

data.frame of x,y coordinates


coolbutuseless/bdftools documentation built on Dec. 19, 2021, 6:03 p.m.