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

c

Combine AmigaBitmapFont objects into an AmigaBitmapFontSet


Description

Use this function to correctly combine one or more AmigaBitmapFont class objects into a single AmigaBitmapFontSet class object.

Usage

## S3 method for class 'AmigaBitmapFont'
c(..., name = "font")

Arguments

...

One or more AmigaBitmapFont objects that need to becombined into a single AmigaBitmapFontSet object. Each AmigaBitmapFont object should have a unique Y-size.

name

A character string specifying the name that needs to be applied to the font set. When unspecified, the default name 'font' is used. Note that this name will also be used as a file name when writing the font to a file. So make sure the name is also a valid file name. This will not be checked for you.

Details

AmigaBitmapFontSet class objects can hold multiple AmigaBitmapFont class objects. Use this method to combine font bitmaps into such a font set. Make sure each bitmap represents a unique font height (in pixels). When heights are duplicated an error will be thrown.

You can also specify a name for the font, that will be embeded in the object. As this name will also be used as a file name when writing the font to a file, make sure that it is a valid filename.

Value

Returns an link{AmigaBitmapFontSet} in which the AmigaBitmapFont objects are combined.

Author(s)

Pepijn de Vries

See Also

Examples

## Not run: 
data(font_example)

## first get some AmigaBitmapFont objects:
font8 <- getAmigaBitmapFont(font_example, 8)
font9 <- getAmigaBitmapFont(font_example, 9)

## now bind these bitmaps again in a single set
font.set <- c(font8, font9, name = "my_font_name")

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