diff --git a/crates/bevy_text/src/font_atlas_set.rs b/crates/bevy_text/src/font_atlas_set.rs index 3092c9c008b43..3be8cf74b7fe5 100644 --- a/crates/bevy_text/src/font_atlas_set.rs +++ b/crates/bevy_text/src/font_atlas_set.rs @@ -60,9 +60,9 @@ pub struct FontAtlasKey(pub u32, pub FontSmoothing); /// A `FontAtlasSet` is an [`Asset`]. /// /// There is one `FontAtlasSet` for each font: -/// - When a [`Font`] is loaded as an asset and then used in [`TextStyle`](crate::TextStyle), +/// - When a [`Font`] is loaded as an asset and then used in [`TextFont`](crate::TextFont), /// a `FontAtlasSet` asset is created from a weak handle to the `Font`. -/// - ~When a font is loaded as a system font, and then used in [`TextStyle`](crate::TextStyle), +/// - ~When a font is loaded as a system font, and then used in [`TextFont`](crate::TextFont), /// a `FontAtlasSet` asset is created and stored with a strong handle to the `FontAtlasSet`.~ /// (*Note that system fonts are not currently supported by the `TextPipeline`.*) /// diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index 2d6e763bc0868..58a1de6b9c5c5 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -2520,7 +2520,7 @@ impl<'w, 's> DefaultUiCamera<'w, 's> { /// Marker for controlling whether Ui is rendered with or without anti-aliasing /// in a camera. By default, Ui is always anti-aliased. /// -/// **Note:** This does not affect text anti-aliasing. For that, use the `font_smoothing` property of the [`TextStyle`](bevy_text::TextStyle) component. +/// **Note:** This does not affect text anti-aliasing. For that, use the `font_smoothing` property of the [`TextFont`](bevy_text::TextFont) component. /// /// ``` /// use bevy_core_pipeline::prelude::*; diff --git a/errors/B0005.md b/errors/B0005.md index 57fa6e94a6a01..7fecfd11a1b38 100644 --- a/errors/B0005.md +++ b/errors/B0005.md @@ -2,7 +2,7 @@ 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`. +Separate font atlases are created for each font and font size. This is expensive, and the memory is never reclaimed when e.g. interpolating `TextFont::font_size` or `UiScale::scale`. If you need to smoothly scale font size, use `Transform::scale`.