Lingo Dictionary > O-R > recordFont |
![]() ![]() ![]() |
recordFont
Syntax
recordFont(
whichCastMember
,
font
{[,
face
]} {,[
bitmapSizes
]} {,
characterSubset
} {,
userFontName
})
Description
Command; embeds a TrueType or Type 1 font as a cast member. Once embedded, these fonts are available to the author just like other fonts installed in the system.
You must create an empty font cast member with the new()
command before using recordFont
.
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
The command creates a Shock Font in whichCastMember
using the font named in the font
argument. The value returned from the command reports whether the operation was successful. Zero indicates success.
Example
This statement creates a simple Shock Font using only the two arguments for the cast member and the font to record:
myNewFontMember = new(#font) recordFont(myNewFontMember, "Lunar Lander")
Example
This statement specifies the bitmap sizes to be generated and the characters for which the font data should be created:
myNewFontMember = new(#font)recordfont(mynewmember,"lunar lander", [], [14, 18, 45], "Lunar Lander Game High
\Score First Last Name")
Note: Since recordFont
resynthesizes the font data rather than using it directly, there are no legal restrictions on Shock Font distribution.
See also
![]() ![]() ![]() |