Skip to contents

Extract or replace a font name from an AmigaBitmapFontSet() object.

Usage

fontName(x)

fontName(x) <- value

Arguments

x

An AmigaBitmapFontSet() for which the font name needs to be changed.

value

A character string specifying the name you wish to use for the font.

Value

Returns the font name. In case of the replace function, a copy of x is returned with the name replaced by 'value'.

Details

The name of a font is embeded at multiple locations of an AmigaBitmapFontSet() object. This function can be used to extract or replace the font name correctly. This is also the name that will be used when writing the font to a file with write.AmigaBitmapFontSet().

Author

Pepijn de Vries

Examples

if (FALSE) {
data(font_example)

## show the name of the example font:
fontName(font_example)

## This is how you change the name into "foo"
fontName(font_example) <- "foo"

## see it worked:
fontName(font_example)
}