Monospaced Spritefonts
Spritefonts can now be used as monospace fonts!
Scribble attempts to emulate GameMaker's native font behaviour as closely as possible, including when handling spritefonts. Scribble's spritefonts have long been limited to proportional-only, but today that changes!
Spritefonts in Scribble will still default to proportional, but a new optional argument has been added to scribble_add_spritefont()
to control this. By setting [proportional]
to false
, Scribble will treat the sprite as monospaced and will copy GameMaker's behaviour. [spaceWidth]
will still affect the size of spaces so when using monospace spritefonts you will likely want to set [spaceWidth]
to undefined
to allow Scribble to automatically determine the size of a space character.
SCRIBBLE_SPRITEFONT_ALIGN_GLYPHS_LEFT
has been added to further control how spritefonts are processed. Scribble allows spritefont characters to be placed anywhere relative to the line of text which is useful if you want to do interesting things with your fonts. However, this isn't the way GameMaker works natively. By setting SCRIBBLE_SPRITEFONT_ALIGN_GLYPHS_LEFT
to true
(it defaults to false
) you can exactly replicate GameMaker's spritefont behaviour.
Additionally, the following bugs are fixed:
- Various sound playback glitches e.g. moving the window after text has faded in
- Corrects a warning message when not setting a space width
- Line heights now correct when changing a font at the start of a line