fontName: Extract or replace a font name

View source: R/bitmapfont.r

fontNameR Documentation

Extract or replace a font name

Description

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.

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().

Value

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

Author(s)

Pepijn de Vries

See Also

Other AmigaBitmapFont.operations: AmigaBitmapFont, availableFontSizes(), c(), font_example, getAmigaBitmapFont(), rasterToAmigaBitmapFont(), rawToAmigaBitmapFontSet(), rawToAmigaBitmapFont(), read.AmigaBitmapFontSet(), read.AmigaBitmapFont(), write.AmigaBitmapFont()

Examples

## Not run: 
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)

## End(Not run)

AmigaFFH documentation built on June 22, 2024, 11:03 a.m.