Extract a specific AmigaBitmapFont from a AmigaBitmapFontSet
Source:R/bitmapfont.r
getAmigaBitmapFont.Rd
Extract a specific AmigaBitmapFont()
from a
AmigaBitmapFontSet()
.
Arguments
- x
An
AmigaBitmapFontSet()
object, from which the specificAmigaBitmapFont()
object needs to be extracted.- size
A single
numeric
value specifying the desired font size in pixels. UseavailableFontSizes()
to get available sizes.
Value
Returns an AmigaBitmapFont()
of the requested size.
An error is thrown when the requested size is not available.
Details
An AmigaBitmapFontSet()
object can hold one or more
bitmaps for specific font sizes (heights). Use this function to
obtain such a specific AmigaBitmapFont()
.
See also
Other AmigaBitmapFont.operations:
AmigaBitmapFont
,
availableFontSizes()
,
c()
,
fontName()
,
font_example
,
rasterToAmigaBitmapFont()
,
rawToAmigaBitmapFontSet()
,
rawToAmigaBitmapFont()
,
read.AmigaBitmapFontSet()
,
read.AmigaBitmapFont()
,
write.AmigaBitmapFont()
Examples
if (FALSE) {
data(font_example)
## get the font object for the first available size:
font <- getAmigaBitmapFont(font_example,
availableFontSizes(font_example)[1])
}