Skip to content

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.

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.

ReturnsSignatureSummary
BitmapFont(FontFamily family, int bitmapSize) protectedCreates 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.

ReturnsSignatureSummary
intgetBitmapSize()Returns the bitmap size of the font.
Inherited from GlyphFont (2)

getFace · getFamily

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.

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

Report a problem with this page