Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getAmigaBitmapFont

Extract a specific AmigaBitmapFont from a AmigaBitmapFontSet


Description

Extract a specific AmigaBitmapFont from a AmigaBitmapFontSet.

Usage

getAmigaBitmapFont(x, size)

Arguments

x

An AmigaBitmapFontSet object, from which the specific AmigaBitmapFont object needs to be extracted.

size

A single numeric value specifying the desired font size in pixels. Use availableFontSizes to get available sizes.

Details

An AmigaBitmapFontSet object can hold one or more bitmaps for specific font sizes (heights). Use this function to obtain such a specific AmigaBitmapFont.

Value

Returns an AmigaBitmapFont of the requested size. An error is thrown when the requested size is not available.

Author(s)

Pepijn de Vries

See Also

Examples

## Not run: 
data(font_example)

## get the font object for the first available size:
font <- getAmigaBitmapFont(font_example,
                           availableFontSizes(font_example)[1])

## End(Not run)

AmigaFFH

Commodore Amiga File Format Handler

v0.3.1
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2019-03-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.