<< Click to Display Table of Contents >> Navigation: 3. Script Language > Image/Pixel-Color Operations > Undercover and Graphics > Undercover Operations |
MiniRobotLanguage (MRL)
UCV.reset font
UCV.rsf
Reset font for printing and writing to original values
Intention
This command enables you to reset the font-settings for printing and writing to the default settings. These are:
Font-Name = Courier New
Font-Size = X-Resolution/10
Font-Pitch = 0
Font-Style = 0
Font-Escapement = 0
Font-Charset = 0 (ANSI)
Once you have used the "UCV.set font" command, the chosen font is use for all print and write commands. Until you choose another font, or until you use this command to reset the values to the default values.
Use the "UCV.foreground" command to set the foreground color.
General usage is simple, here you can see an example that will set- and reset the font.
It will generate a picture like the above picture.
UCV.nbi
' Make a completely red cover
UCV.bgr|&HFF0000
UCV.gra|&HFF00FF|&HFFFF00
' Switch writing color to yellow
UCV.fgr|&HFFFF00
' Set a font
UCV.font set|Futurat|164|18||350
UCV.write|Hello world!|350,620
' reset the font to default
UCV.rsf
' print the black shadow for a 3D Effect
UCV.fgr|&H000000
UCV.write|Hello world!|15,620
UCV.fgr|&H00FF00
UCV.write|Hello world!|17,625
PAU.5
' This will remove the Cover
UCV.
ENR.
Syntax
UCV.reset font
UCV.rsf
Parameter Explanation
-
Example
'***********************************
' UCV.-Sample
' Shows font setting and resetting
'***********************************
'
UCV.nbi
' Make a completely red cover
UCV.bgr|&HFF0000
UCV.gra|&HFF00FF|&H00FFFF
' Switch font color to yellow
UCV.fgr|&HFFFF00
UCV.font set|Futurat|164|18||350
UCV.write|Hello world!|350,620
UCV.rsf
UCV.fgr|&H000000
UCV.write|Hello world!|15,620
UCV.fgr|&H00FF00
UCV.write|Hello world!|17,625
PAU.5
' This will remove the Cover
UCV.
ENR.
Remarks
-
Limitations:
-
See also:
• ! Smart Package Robot 's Undercover Operations
• ! UCV. - Undercover Graphics