Skip to content
MOARdV edited this page Jun 4, 2017 · 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 in Regular and Italic 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 in Regular and Bold font styles.
  • Liberation Sans - the Liberation Sans serif font, which is a font that typographically fits the footprint of the Arial font found on Windows. When a requested system is not found, MAS will fall back to using the Liberation Sans regular ([see](https://pagure.io/liberation-fonts)). Available in Regular, Bold, Italic, and BoldAndItalic`.
  • 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.

At the present, MAS does not support the use of TextMeshPro fonts for rendering.

Clone this wiki locally