Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font "scribble_fallback_font" not recognised #584

Closed
gnysek opened this issue Nov 5, 2024 · 1 comment
Closed

Font "scribble_fallback_font" not recognised #584

gnysek opened this issue Nov 5, 2024 · 1 comment
Labels

Comments

@gnysek
Copy link

gnysek commented Nov 5, 2024

Since runtime v2024.1100.0.691, Scribble could yell with message:

Font "scribble_fallback_font" not recognised

This is caused by a newly added GM Feature, to strip out not used resources. As "scribble_fallback_font" is a string, not reference to resource, GM removes it if this option is enabled in Game Options > Main.

There are two solutions:
a) disable this option in Game Options > Main
obraz

b) In Scribble, in script __scribble_initialize on line 76

__default_font: "scribble_fallback_font",

Replace:

__default_font: "scribble_fallback_font",

to:

__default_font: nameof(scribble_fallback_font),

(nameof() causes converting to string on compile, but might not be compatible with LTS, so font_get_name() might be more compatible).

Sorry that I'm too lazy to make pull request for it.

@JujuAdams
Copy link
Owner

Thanks for flagging this. 9.3.4 will attempt to discover situations where this compile option has been ticked and will direct the developer to fix the problem.

Regrettably, in the general case, the only way to avoid asset stripping messing up Scribble is to specifically mention by reference every font and sprite you intend to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants