get_styles: Get font names corresponding to four style names for a font...

View source: R/register.R

get_stylesR Documentation

Get font names corresponding to four style names for a font family

Description

systemfonts::system_fonts() などの結果から4書体のフォントを取 得する. ただしうまくいくとは限らない.

Usage

get_styles(data)

Arguments

data

data.frame alike, output of font list from systemfonts:: system_fonts() or its subset, which includes six columns: name, family, style, weight, width, and italic/ data.frame 相当のオブジェクトで, systemfonts::system_fonts() のから特定のファミリだけ取り出したもので, name, family, style, weight, width, italic 列を持つもの.

Details

The original function was transferred from https://github.com/Gedevan-Aleksizde/fontregisterer (Version 0.3) accessed on 2023/06/02 (Fri.).

Value

character vector of length 4: It's elements are names of plain, bold, italic, and bold italic font./長さ4の文字列ベクトル. 要素は順に標準, ボールド, イタリック, ボールドイタリック体のpostscript名.


JK-junkin/frabento documentation built on Oct. 20, 2023, noon