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

rawToAmigaBitmapFont

Coerce raw data into an AmigaBitmapFont class object


Description

AmigaBitmapFont objects are comprehensive representations of binary Amiga font subset files. The file name is usually simply a numeric number indicating the font height in pixels. Use this function to convert raw content from such a file to an AmigaBitmapFont object.

Usage

rawToAmigaBitmapFont(x, ...)

Arguments

x

An AmigaBitmapFont object which needs to be converted into raw data.

...

Currently ignored.

Details

This function converts raw data as stored in font bitmap files. These files are stored in subdirectories with the font's name and usually have the font height in pixels as file name. This function is effectively the inverse of as.raw.

Value

A vector of raw data representing x.

Author(s)

Pepijn de Vries

See Also

Examples

## Not run: 
## first create raw data that can be converted into a AmigaBitmapFont
data(font_example)
font.raw <- as.raw(getAmigaBitmapFont(font_example, 9))

## Convert it back into an AmigaBitmapFont object:
font <- rawToAmigaBitmapFont(font.raw)

## 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.