bevy/examples/input
Rob Parrett 659860dfe5
Cosmetic improvements for text_input example (#15016)
# Objective

Minor cosmetic improvements and code cleanup for this example

## Solution

- Use the default font and shorter constructor where the the full font
is not needed
- Use 12px padding for instruction text to match other examples
- Clean up formatting of instruction text
- Fix one instance of a font handle not being reused

<details>
<summary>Before / After</summary>


*Question mark boxes are expected. We don't include a font with the
glyphs I'm testing the IME with*

<img width="1280" alt="Screenshot 2024-09-02 at 11 14 17 AM"
src="https://github.com/user-attachments/assets/e0a904a3-c01b-4c18-b71f-41fbc1d09169">
<img width="1280" alt="Screenshot 2024-09-02 at 11 13 14 AM"
src="https://github.com/user-attachments/assets/4b2a2d31-6b9f-4b9a-a245-4258a6aa9519">
</details>

## Testing

Tested all functionality of the example (macOS)
2024-09-02 22:49:12 +00:00
..
char_input_events.rs
gamepad_input_events.rs
gamepad_input.rs
gamepad_rumble.rs
keyboard_input_events.rs
keyboard_input.rs
keyboard_modifiers.rs
mouse_grab.rs
mouse_input_events.rs
mouse_input.rs
text_input.rs Cosmetic improvements for text_input example (#15016) 2024-09-02 22:49:12 +00:00
touch_input_events.rs
touch_input.rs