Releases: JujuAdams/Scribble
Releases · JujuAdams/Scribble
8.2.0
Documentation here.
New features:
- Kerning pairs are now loaded from standard fonts and MSDF fonts automatically. You can modify kerning pairs with
scribble_kerning_pair_set()
, including adding kerning pairs to spritefonts - Adds
SCRRIBLE_USE_KERNING
to turn off the above behaviour if you don't like it! - Adds macros, added via
scribble_add_macro()
. Macros can be used to inject substrings into the Scribble parser - Scribble now creates zero global variables, keeping your debugger neat and tidy
- Adds
SCRIBBLE_THAI_GRAVE_ACCENTS_ARE_ZWSP
to help with localisation - Adds
SCRIBBLE_UNDO_UNICODE_SUBSTITUTIONS
to clean up text that Google Docs or MS Word has butchered .get_bbox()
returned struct now contains the original x/y argument provided to the method
Bug Fixes:
- Fixes animations freezing if many copies of the same text element are drawn
- Regions are now scanned in reverse to work around an issue with region heights sometimes being a bit too tall
- Removes that annoying
Warning! Model generator found hanging line data
debug message - Fixes crash in
scribble_font_get_glyph_ranges()
- Fixes crash when drawing an empty string with a Krutidev font
- Minor improvements to error reporting
8.1.0
Documentation here.
New features:
- Adds
[typistSound]
and[typistSoundPerChar]
inline command tags. These operate identically to the equivalent typist.sound()
and.sound_per_char()
methods. The command tags will only take effect when a typist is being used to draw a text element - Setting the height of a space character now adjusts the line height for a font. No more adding
.line_height()
to every text element! - MSDF fonts with missing spaces will now have a space character automatically generated. You can adjust the width of the space character by using
scribble_glyph_set()
(as you would when modifying any character) - Adds
SCRIBBLE_ATTEMPT_FONT_SCALING_FIX
to control occasionally problematic automatic fixing of font downscaling issues
Bug Fixes:
- Fixes colours sometimes being reversed on Opera GX
.blend()
now affects.msdf_border()
- Font loading-related crashes are now handled slightly more gracefully
- Arabic aleph+lam ligature no longer joins left when it shouldn't
- Devanagari no longer trips over whitespace and other non-printable characters
8.0.9
Documentation here.
- Fixes forced line height causing inconsistent y-offsets for glyphs
- Protects against crashes when
SCRIBBLE_FIT_TO_BOX_ITERATIONS
to set to 0 - Fixes bounding box getters not updating when regenerating the model
- Fixes off-by-one in
scribble_font_scale()
- Fixes
scribble_font_bake_shader()
not working for fonts with glyphs from multiple texture pages
8.0.8
Documentation here.
- Improves debug messages when a character is missing from a font
- Fixes sprites occasionally breaking Devanagari rendering
- Fixes sprites being wrongly positioned when used with right-to-left scripts (Arabic and Hebrew)
- Fixes nukta rendering when using Devanagari
- Fixes Chinese punctuation inelegantly wrapping to new lines
- Fixes hiragana and katakana not being considered as CJK glyphs
- Fixes mixed script usage with Devanagari
8.0.7
Documentation here.
- Many performance improvements
- Fixes hamza and tatweel/kashida being unsupported when rendering Arabic
- Fixes non-breaking spaces rendering incorrectly in most fonts
- Fixes use of in-line sprites breaking Devanagari (Hindi) rendering
- Fixes
.fit_to_box()
not functioning properly when words are too long for the box
Known Issues:
- In-line sprites are occasionally incorrectly positioned during right-to-left rendering (Arabic and Hebrew)
8.0.5
Documentation here.
Changes from 8.0.4:
- Calling a method after
.draw()
now throws a helpful error message - Fixes many
.fit_to_box()
issues, including incorrect sizing and right-to-left script incompatibilities - Fixes spaces being set to zero width occasionally
- Fixes text effects being lost when backgrounding the app on Android
- Fixes
.skip()
not working when applied before new text is drawn with a typist - Fixes crash when rendering ओ in Krutidev fonts
- Adds
scribble_font_delete()
andscribble_font_exists()
scribble_font_rename()
is now safer- Fixes another nasty edge case garbage collection bug
8.0.4
8.0.3
8.0.2
8.0.1 Beta 11
Change log against v7.1 here.
Documentation here.
Changes from beta 9:
- Adds support for Hindi via the Krutidev system
- Many, many HTML5 fixes
- Custom colour ds_map in
__scribble_config_colours()
has been replaced by a struct for ease-of-use - Adds
string_width_scribble()
scribble_height_scribble()
and their extended variants - Adds
.is_animated()
text element method to return if any animated effects or sprites are being used in a particular text element - MSDF shadows now respect border thickness