mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
0db999c795
# Objective - Have more docs for `bevy_text` to avoid reading the source code for some things. ## Solution - Add some additional docs. ## Changelog - `TextSettings.max_font_atlases` in `bevy_text` has been renamed to ` TextSettings.soft_max_font_atlases`. ## Migration Guide - Usages of `TextSettings.max_font_atlases` from `bevy_text` must be changed to `TextSettings.soft_max_font_atlases`.
439 B
439 B
B0005
A runtime warning.
Separate font atlases are created for each font and font size. This is expensive, and the memory is never reclaimed when e.g. interpolating TextStyle::font_size
or UiScale::scale
.
If you need to smoothly scale font size, use Transform::scale
.
You can disable this warning by setting TextSettings::allow_dynamic_font_size
to true
or raise the limit by setting TextSettings::soft_max_font_atlases
.