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

GD-233: Fix font loading error on linux systems #236

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Conversation

MikeSchulze
Copy link
Owner

Why

We see an error res://addons/gdUnit4/src/ui/GdUnitFonts.gd:38 - Invalid set index 'font_data' (on base: 'FontFile') with value of type 'FontFile'. on linux systems when activating the plugin

What

The property font_data was removed and the error was just ignored.

  • Rewrite the font loader by load the font and duplicate and set the new font size.
  • Renamed to better related name
  • Add test coverage

# Why
We see an error `res://addons/gdUnit4/src/ui/GdUnitFonts.gd:38 - Invalid set index 'font_data' (on base: 'FontFile') with value of type 'FontFile'.` on linux systems when activating the plugin

# What
The property `font_data` was removed and the error was just ignored.
- Rewrite the font loader by load the font and duplicate and set the new font size.
- Renamed to better related name
- Add test coverage
@MikeSchulze MikeSchulze self-assigned this Jul 27, 2023
@MikeSchulze MikeSchulze merged commit abb8299 into master Jul 27, 2023
@MikeSchulze MikeSchulze deleted the GD-233 branch July 27, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GD-233: Console shows errors Invalid set index 'font_data' on Plugin activate
1 participant