sarkahn/bevy_ascii_terminal

Multiple terminals with pixel scaling and different fonts severely missized in 0.12

Illiux opened this issue · 2 comments

After updating from bevy 0.6->0.9, and bevy_ascii_terminal along with it, something has gone very wrong with my terminals:

2022-12-26-091046_1600x896_scrot
This is how it is supposed to look.

2022-12-26-091005_1600x896_scrot
This is what it looks like after updating.

It seems almost as if everything is being rendered with 8x8 tiles when one terminal is using 16x16 tiles and the other 8x16.

After noticing that this was in fact rendering with different fonts than I intended, I dug a little and figured out what was happening. I directly set TerminalMaterial as I'm spawning my terminals, but now with TerminalFont being on them it gets immediately processed and my material is overridden. It works if I remove the TerminalFont component as I'm spawning the terminals, but this feels pretty awkward.

As discussed on discord the method for changing fonts will be changed in the next version, I will aim for something that fits in more naturally with how bevy handles textures/materials