Interface: IBitmapFontOptions

PIXI.IBitmapFontOptions

Properties:
Name Type Default Description
alphaMode PIXI.ALPHA_MODES PIXI.ALPHA_MODES.UNPACK

Pre multiply the image alpha. Note: for MSDF/SDF fonts, alphaMode is not supported.

anisotropicLevel number PIXI.settings.ANISOTROPIC_LEVEL

Anisotropic filtering level of texture.

chars string | (string | string[])[] PIXI.BitmapFont.ALPHANUMERIC

Characters included in the font set. You can also use ranges. For example, [['a', 'z'], ['A', 'Z'], "!@#$%^&*()~{}[] "]. Don't forget to include spaces ' ' in your character set!

mipmap PIXI.MIPMAP_MODES PIXI.settings.MIPMAP_TEXTURES

If mipmapping is enabled for texture. For instance, by default PixiJS only enables mipmapping on Power-of-Two textures. If your textureWidth or textureHeight are not power-of-two, you may consider enabling mipmapping to get better quality with lower font sizes. Note: for MSDF/SDF fonts, mipmapping is not supported.

padding number 4

Padding between glyphs on texture atlas. Lower values could mean more visual artifacts and bleeding from other glyphs, larger values increase the space required on the texture.

resolution number 1

Render resolution for glyphs.

scaleMode PIXI.SCALE_MODES PIXI.settings.SCALE_MODE

Default scale mode, linear, nearest. Nearest can be helpful for bitmap-style fonts.

textureHeight number 512

Optional height of atlas, smaller values to reduce memory.

textureWidth number 512

Optional width of atlas, smaller values to reduce memory.

Extends

  • BaseOptions

Members

alphaMode PIXI.ALPHA_MODES

Pre multiply the image alpha. Note: for MSDF/SDF fonts, alphaMode is not supported.

Default Value:
  • PIXI.ALPHA_MODES.UNPACK

anisotropicLevel number

Anisotropic filtering level of texture.

Default Value:
  • PIXI.settings.ANISOTROPIC_LEVEL

chars string | (string | string[])[]

Characters included in the font set. You can also use ranges. For example, [['a', 'z'], ['A', 'Z'], "!@#$%^&*()~{}[] "]. Don't forget to include spaces ' ' in your character set!

Default Value:
  • PIXI.BitmapFont.ALPHANUMERIC

If mipmapping is enabled for texture. For instance, by default PixiJS only enables mipmapping on Power-of-Two textures. If your textureWidth or textureHeight are not power-of-two, you may consider enabling mipmapping to get better quality with lower font sizes. Note: for MSDF/SDF fonts, mipmapping is not supported.

Default Value:
  • PIXI.settings.MIPMAP_TEXTURES

padding number

Padding between glyphs on texture atlas. Lower values could mean more visual artifacts and bleeding from other glyphs, larger values increase the space required on the texture.

Default Value:
  • 4

resolution number

Render resolution for glyphs.

Default Value:
  • 1

scaleMode PIXI.SCALE_MODES

Default scale mode, linear, nearest. Nearest can be helpful for bitmap-style fonts.

Default Value:
  • PIXI.settings.SCALE_MODE

textureHeight number

Optional height of atlas, smaller values to reduce memory.

Default Value:
  • 512

textureWidth number

Optional width of atlas, smaller values to reduce memory.

Default Value:
  • 512