-
Notifications
You must be signed in to change notification settings - Fork 27
Fonts
MOARdV edited this page Jun 25, 2019
·
8 revisions
For rendering text on MASMonitor props and in TEXT nodes of MASComponent props, MAS can use any system font installed on the player's computer. However, not all fonts are available on all platforms, and some fonts may have different names, depending on the platform.
To provide consistent fonts across platforms, MAS packages several fonts in its asset bundle:
-
Digital-7
- 7-segment LED styled typeface with proportional widths (see). -
Digital-7 Italic
- The 7-segment proportional typeface, italicized. -
Digital-7 Mono
- A fixed-advance version of the Digital-7 typeface. Available inRegular
andItalic
font styles. For LED/LCD displays numeric, this is a good font to use. -
InconsolataGo
- a fixed-width font intended to be easier to read on-screen (see). Available inRegular
andBold
font styles. -
Liberation Sans
- the Liberation Sans serif font, which is a font that typographically fits the footprint of the Arial font. When a requested font is not found, MAS uses Liberation Sans regular (see). Available inRegular
,Bold
,Italic
, andBoldAndItalic
. This font also contains a fairly complete character set, so it also is good for localized text. -
Press Start K
- the Press Start font emulates retro-style bitmap CRT fonts (see). -
Repetition Scrolling
- the Repetition Scrolling font emulates a dot-matrix LCD display (see).
In addition, legacy RasterPropMonitor bitmap fonts may be added to the MAS font system using the following import config node:
MAS_BITMAP_FONT
{
name = JSI_baseFont
texture = JSI/RasterPropMonitor/Library/Fonts/baseFont
fontDefinition = JSI/RasterPropMonitor/Library/Fonts/fontDefinition.txt
fontSize = 16,32
}
- name - Required. The name that will be used to access this font is MAS.
- texture - Required. The path to the bitmap that will be imported.
- fontDefinition - Required. The path to the RPM font definition file.
- fontSize - Required. The size of font glyphs in the texture. Note that you do not have to use the same size when rendering, although the image quality may suffer if a different size is used.
MAS does not support TextMeshPro fonts.