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

Way to scale only text but not inline sprites #565

Open
DragoniteSpam opened this issue Jul 30, 2024 · 2 comments
Open

Way to scale only text but not inline sprites #565

DragoniteSpam opened this issue Jul 30, 2024 · 2 comments
Labels
feature 💭 It would be extra good if...

Comments

@DragoniteSpam
Copy link

I have a weird feeling that this is one of those "only something that I want to do" things but maybe there's a way to deal with it.

Is there a way to have inline sprites ignore .scale() values?
image
image

I recently changed all of the text in WD to use SDF fonts instead of raster, which is great for the game's memory footprint, but it also means text has to be drawn scaled up and down sometimes (whereas previously they would have used fonts of different sizes, all at 1x scale).

This is usually okay but there are some places where in-line sprites are drawn where it becomes kind of like

image
image

I'm considering just dropping in-line sprites entirely if there isn't a good way to deal with this, seeing how many alignment issues I've already had with them in the past.

@JujuAdams JujuAdams added the feature 💭 It would be extra good if... label Jul 30, 2024
@JujuAdams
Copy link
Owner

I think this might be a duplicate ticket but this is well-explained so I'll keep it.

I think this is relatively easy to handle. However, would you expect scale exemption to apply to .fit_to_box() as well?

@DragoniteSpam
Copy link
Author

Not really sure, I don't use fit_to_box very often. Would probably be worth asking around for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💭 It would be extra good if...
Projects
None yet
Development

No branches or pull requests

2 participants