CPFont
Font descriptor.
Font is an asset. Just like other assets such as images, sounds, animations or videos they are not managed or governed by the CosPlay game engine unlike scenes and scene objects that are managed and governed by the game engine. Assets are typically created outside the game loop and managed by the developer, they can be freely shared between scenes or scene objects as any other standard Scala objects.
CosPlay comes with a full support for FIGLet fonts as well as standard "system" font , all of which implement this interface. In other words, there's no difference whether you are drawing with a system (1-character height) font or a FIGLet font.
Attributes
- See also:
CPFIGLetFont FIGLet fonts.
CPSystemFont System font.
CPStyledString Styled string using system font.
CPCanvas.drawStyledString Canvas drawing using system font or styled strings.
- Example:
See CPFontsExample source code for an example of font functionality.
- Source:
- CPFont.scala
- Graph
- Supertypes
- Known subtypes
- class CPFIGLetFontobject CPSystemFont.type