BitmapFont
abstract class BitmapFont<F extends IFontFace>
Extends: GlyphFont<F>
Package: dev.joid.lib.font.impl.bitmap · Module: core · Source: BitmapFont.java
Base class of the pixel fonts, glyph fonts drawn from texture cells at an exact bitmap size.
Description
Section titled “Description”Extend it with a BitmapTextRenderer of your own that returns the BitmapCell of each glyph.
At a font size equal to the bitmap size, one font pixel (one texel of a cell unless its bounds say otherwise) is one design pixel; other sizes scale the cells.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| BitmapFont(FontFamily | Creates the font from its faces and its bitmap size: the number of font pixels per em, which is the font size in design pixels at which one font pixel draws as one design pixel. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getBitmapSize() | Returns the bitmap size of the font. |
Creation details
Section titled “Creation details”BitmapFont
Section titled “BitmapFont”BitmapFont(FontFamily<F> family, int bitmapSize) protected
Creates the font from its faces and its bitmap size: the number of font pixels per em, which is the font size in design pixels at which one font pixel draws as one design pixel.
Throws IllegalArgumentException when bitmapSize is 0 or less.
Method details
Section titled “Method details”getBitmapSize
Section titled “getBitmapSize”int getBitmapSize()
Returns the bitmap size of the font.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
