38 lines
25 KiB
HTML
38 lines
25 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This crate provides the tools for positioning and rendering text in Bevy."><title>bevy_text - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bevy_text" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bevy_text/index.html">bevy_<wbr>text</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#font" title="`Font`"><code>Font</code></a></li><li><a href="#textpipeline" title="`TextPipeline`"><code>TextPipeline</code></a></li></ul><h3><a href="#reexports">Crate Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>bevy_text</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/bevy_text/lib.rs.html#1-162">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This crate provides the tools for positioning and rendering text in Bevy.</p>
|
|
<h2 id="font"><a class="doc-anchor" href="#font">§</a><code>Font</code></h2>
|
|
<p>Fonts contain information for drawing glyphs, which are shapes that typically represent a single character,
|
|
but in some cases part of a “character” (grapheme clusters) or more than one character (ligatures).</p>
|
|
<p>A font <em>face</em> is part of a font family,
|
|
and is distinguished by its style (e.g. italic), its weight (e.g. bold) and its stretch (e.g. condensed).</p>
|
|
<p>In Bevy, <a href="struct.Font.html" title="struct bevy_text::Font"><code>Font</code></a>s are loaded by the <a href="struct.FontLoader.html" title="struct bevy_text::FontLoader"><code>FontLoader</code></a> as <a href="../bevy_asset/struct.AssetPlugin.html" title="struct bevy_asset::AssetPlugin">assets</a>.</p>
|
|
<h2 id="textpipeline"><a class="doc-anchor" href="#textpipeline">§</a><code>TextPipeline</code></h2>
|
|
<p>The <a href="struct.TextPipeline.html" title="struct bevy_text::TextPipeline"><code>TextPipeline</code></a> resource does all of the heavy lifting for rendering text.</p>
|
|
<p>UI <code>Text</code> is first measured by creating a <a href="struct.TextMeasureInfo.html" title="struct bevy_text::TextMeasureInfo"><code>TextMeasureInfo</code></a> in <a href="struct.TextPipeline.html#method.create_text_measure" title="method bevy_text::TextPipeline::create_text_measure"><code>TextPipeline::create_text_measure</code></a>,
|
|
which is called by the <code>measure_text_system</code> system of <code>bevy_ui</code>.</p>
|
|
<p>Note that text measurement is only relevant in a UI context.</p>
|
|
<p>With the actual text bounds defined, the <code>bevy_ui::widget::text::text_system</code> system (in a UI context)
|
|
or <a href="fn.update_text2d_layout.html" title="fn bevy_text::update_text2d_layout"><code>text2d::update_text2d_layout</code></a> system (in a 2d world space context)
|
|
passes it into <a href="struct.TextPipeline.html#method.queue_text" title="method bevy_text::TextPipeline::queue_text"><code>TextPipeline::queue_text</code></a>, which:</p>
|
|
<ol>
|
|
<li>updates a <a href="../cosmic_text/buffer/struct.Buffer.html" title="struct cosmic_text::buffer::Buffer"><code>Buffer</code></a> from the <a href="struct.TextSpan.html" title="struct bevy_text::TextSpan"><code>TextSpan</code></a>s, generating new <a href="struct.FontAtlasSet.html" title="struct bevy_text::FontAtlasSet"><code>FontAtlasSet</code></a>s if necessary.</li>
|
|
<li>iterates over each glyph in the <a href="../cosmic_text/buffer/struct.Buffer.html" title="struct cosmic_text::buffer::Buffer"><code>Buffer</code></a> to create a <a href="struct.PositionedGlyph.html" title="struct bevy_text::PositionedGlyph"><code>PositionedGlyph</code></a>,
|
|
retrieving glyphs from the cache, or rasterizing to a <a href="struct.FontAtlas.html" title="struct bevy_text::FontAtlas"><code>FontAtlas</code></a> if necessary.</li>
|
|
<li><a href="struct.PositionedGlyph.html" title="struct bevy_text::PositionedGlyph"><code>PositionedGlyph</code></a>s are stored in a <a href="struct.TextLayoutInfo.html" title="struct bevy_text::TextLayoutInfo"><code>TextLayoutInfo</code></a>,
|
|
which contains all the information that downstream systems need for rendering.</li>
|
|
</ol>
|
|
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name" id="reexport.cosmic_text"><code>pub use <a class="mod" href="../cosmic_text/index.html" title="mod cosmic_text">cosmic_text</a>;</code></div></li></ul><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="prelude/index.html" title="mod bevy_text::prelude">prelude</a></div><div class="desc docblock-short">The text prelude.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.ComputedTextBlock.html" title="struct bevy_text::ComputedTextBlock">Computed<wbr>Text<wbr>Block</a></div><div class="desc docblock-short">Computed information for a text block.</div></li><li><div class="item-name"><a class="struct" href="struct.CosmicBuffer.html" title="struct bevy_text::CosmicBuffer">Cosmic<wbr>Buffer</a></div><div class="desc docblock-short">Wrapper for <a href="../cosmic_text/buffer/struct.Buffer.html" title="struct cosmic_text::buffer::Buffer"><code>cosmic_text::Buffer</code></a></div></li><li><div class="item-name"><a class="struct" href="struct.CosmicFontSystem.html" title="struct bevy_text::CosmicFontSystem">Cosmic<wbr>Font<wbr>System</a></div><div class="desc docblock-short">A wrapper resource around a <a href="../cosmic_text/font/system/struct.FontSystem.html" title="struct cosmic_text::font::system::FontSystem"><code>cosmic_text::FontSystem</code></a></div></li><li><div class="item-name"><a class="struct" href="struct.Font.html" title="struct bevy_text::Font">Font</a></div><div class="desc docblock-short">An <a href="../bevy_asset/trait.Asset.html" title="trait bevy_asset::Asset"><code>Asset</code></a> that contains the data for a loaded font, if loaded as an asset.</div></li><li><div class="item-name"><a class="struct" href="struct.FontAtlas.html" title="struct bevy_text::FontAtlas">Font<wbr>Atlas</a></div><div class="desc docblock-short">Rasterized glyphs are cached, stored in, and retrieved from, a <code>FontAtlas</code>.</div></li><li><div class="item-name"><a class="struct" href="struct.FontAtlasKey.html" title="struct bevy_text::FontAtlasKey">Font<wbr>Atlas<wbr>Key</a></div><div class="desc docblock-short">Identifies a font size and smoothing method in a <a href="struct.FontAtlasSet.html" title="struct bevy_text::FontAtlasSet"><code>FontAtlasSet</code></a>.</div></li><li><div class="item-name"><a class="struct" href="struct.FontAtlasSet.html" title="struct bevy_text::FontAtlasSet">Font<wbr>Atlas<wbr>Set</a></div><div class="desc docblock-short">A map of font sizes to their corresponding <a href="struct.FontAtlas.html" title="struct bevy_text::FontAtlas"><code>FontAtlas</code></a>es, for a given font face.</div></li><li><div class="item-name"><a class="struct" href="struct.FontAtlasSets.html" title="struct bevy_text::FontAtlasSets">Font<wbr>Atlas<wbr>Sets</a></div><div class="desc docblock-short">A map of font faces to their corresponding <a href="struct.FontAtlasSet.html" title="struct bevy_text::FontAtlasSet"><code>FontAtlasSet</code></a>s.</div></li><li><div class="item-name"><a class="struct" href="struct.FontLoader.html" title="struct bevy_text::FontLoader">Font<wbr>Loader</a></div><div class="desc docblock-short">An <a href="../bevy_asset/loader/trait.AssetLoader.html" title="trait bevy_asset::loader::AssetLoader"><code>AssetLoader</code></a> for <a href="struct.Font.html" title="struct bevy_text::Font"><code>Font</code></a>s, for use by the <a href="../bevy_asset/server/struct.AssetServer.html" title="struct bevy_asset::server::AssetServer"><code>AssetServer</code></a></div></li><li><div class="item-name"><a class="struct" href="struct.FontWeight.html" title="struct bevy_text::FontWeight">Font<wbr>Weight</a></div><div class="desc docblock-short">Specifies the weight of glyphs in the font, their degree of blackness or stroke thickness.</div></li><li><div class="item-name"><a class="struct" href="struct.GlyphAtlasInfo.html" title="struct bevy_text::GlyphAtlasInfo">Glyph<wbr>Atlas<wbr>Info</a></div><div class="desc docblock-short">Information about a glyph in an atlas.</div></li><li><div class="item-name"><a class="struct" href="struct.GlyphAtlasLocation.html" title="struct bevy_text::GlyphAtlasLocation">Glyph<wbr>Atlas<wbr>Location</a></div><div class="desc docblock-short">The location of a glyph in an atlas,
|
|
and how it should be positioned when placed.</div></li><li><div class="item-name"><a class="struct" href="struct.PositionedGlyph.html" title="struct bevy_text::PositionedGlyph">Positioned<wbr>Glyph</a></div><div class="desc docblock-short">A glyph of a font, typically representing a single character, positioned in screen space.</div></li><li><div class="item-name"><a class="struct" href="struct.SwashCache.html" title="struct bevy_text::SwashCache">Swash<wbr>Cache</a></div><div class="desc docblock-short">A wrapper resource around a <a href="../cosmic_text/swash/struct.SwashCache.html" title="struct cosmic_text::swash::SwashCache"><code>cosmic_text::SwashCache</code></a></div></li><li><div class="item-name"><a class="struct" href="struct.Text2d.html" title="struct bevy_text::Text2d">Text2d</a></div><div class="desc docblock-short">The top-level 2D text component.</div></li><li><div class="item-name"><a class="struct" href="struct.Text2dBundle.html" title="struct bevy_text::Text2dBundle">Text2d<wbr>Bundle</a><wbr><span class="stab deprecated" title="">Deprecated</span></div><div class="desc docblock-short"><a href="struct.Text2dBundle.html" title="struct bevy_text::Text2dBundle"><code>Text2dBundle</code></a> was removed in favor of required components.
|
|
The core component is now <a href="struct.Text2d.html" title="struct bevy_text::Text2d"><code>Text2d</code></a> which can contain a single text segment.
|
|
Indexed access to segments can be done with the new <a href="type.Text2dReader.html" title="type bevy_text::Text2dReader"><code>Text2dReader</code></a> and <a href="type.Text2dWriter.html" title="type bevy_text::Text2dWriter"><code>Text2dWriter</code></a> system params.
|
|
Additional segments can be added through children with <a href="struct.TextSpan.html" title="struct bevy_text::TextSpan"><code>TextSpan</code></a>.
|
|
Text configuration can be done with <a href="struct.TextLayout.html" title="struct bevy_text::TextLayout"><code>TextLayout</code></a>, <a href="struct.TextFont.html" title="struct bevy_text::TextFont"><code>TextFont</code></a> and <a href="struct.TextColor.html" title="struct bevy_text::TextColor"><code>TextColor</code></a>,
|
|
while sprite-related configuration uses <a href="struct.TextBounds.html" title="struct bevy_text::TextBounds"><code>TextBounds</code></a> and <a href="../bevy_sprite/sprite/enum.Anchor.html" title="enum bevy_sprite::sprite::Anchor"><code>Anchor</code></a> components.</div></li><li><div class="item-name"><a class="struct" href="struct.TextBounds.html" title="struct bevy_text::TextBounds">Text<wbr>Bounds</a></div><div class="desc docblock-short">The maximum width and height of text. The text will wrap according to the specified size.</div></li><li><div class="item-name"><a class="struct" href="struct.TextColor.html" title="struct bevy_text::TextColor">Text<wbr>Color</a></div><div class="desc docblock-short">The color of the text for this section.</div></li><li><div class="item-name"><a class="struct" href="struct.TextEntity.html" title="struct bevy_text::TextEntity">Text<wbr>Entity</a></div><div class="desc docblock-short">A sub-entity of a <a href="struct.ComputedTextBlock.html" title="struct bevy_text::ComputedTextBlock"><code>ComputedTextBlock</code></a>.</div></li><li><div class="item-name"><a class="struct" href="struct.TextFont.html" title="struct bevy_text::TextFont">Text<wbr>Font</a></div><div class="desc docblock-short"><code>TextFont</code> determines the style of a text span within a <a href="struct.ComputedTextBlock.html" title="struct bevy_text::ComputedTextBlock"><code>ComputedTextBlock</code></a>, specifically
|
|
the font face, the font size, and the color.</div></li><li><div class="item-name"><a class="struct" href="struct.TextLayout.html" title="struct bevy_text::TextLayout">Text<wbr>Layout</a></div><div class="desc docblock-short">Component with text format settings for a block of text.</div></li><li><div class="item-name"><a class="struct" href="struct.TextLayoutInfo.html" title="struct bevy_text::TextLayoutInfo">Text<wbr>Layout<wbr>Info</a></div><div class="desc docblock-short">Render information for a corresponding text block.</div></li><li><div class="item-name"><a class="struct" href="struct.TextMeasureInfo.html" title="struct bevy_text::TextMeasureInfo">Text<wbr>Measure<wbr>Info</a></div><div class="desc docblock-short">Size information for a corresponding <a href="struct.ComputedTextBlock.html" title="struct bevy_text::ComputedTextBlock"><code>ComputedTextBlock</code></a> component.</div></li><li><div class="item-name"><a class="struct" href="struct.TextPipeline.html" title="struct bevy_text::TextPipeline">Text<wbr>Pipeline</a></div><div class="desc docblock-short">The <code>TextPipeline</code> is used to layout and render text blocks (see <code>Text</code>/<a href="struct.Text2d.html" title="struct bevy_text::Text2d"><code>Text2d</code></a>).</div></li><li><div class="item-name"><a class="struct" href="struct.TextPlugin.html" title="struct bevy_text::TextPlugin">Text<wbr>Plugin</a></div><div class="desc docblock-short">Adds text rendering support to an app.</div></li><li><div class="item-name"><a class="struct" href="struct.TextReader.html" title="struct bevy_text::TextReader">Text<wbr>Reader</a></div><div class="desc docblock-short">System parameter for reading text spans in a text block.</div></li><li><div class="item-name"><a class="struct" href="struct.TextSpan.html" title="struct bevy_text::TextSpan">Text<wbr>Span</a></div><div class="desc docblock-short">A span of UI text in a tree of spans under an entity with <a href="struct.TextLayout.html" title="struct bevy_text::TextLayout"><code>TextLayout</code></a> and <code>Text</code> or <code>Text2d</code>.</div></li><li><div class="item-name"><a class="struct" href="struct.TextSpanIter.html" title="struct bevy_text::TextSpanIter">Text<wbr>Span<wbr>Iter</a></div><div class="desc docblock-short">Iterator returned by <a href="struct.TextReader.html#method.iter" title="method bevy_text::TextReader::iter"><code>TextReader::iter</code></a>.</div></li><li><div class="item-name"><a class="struct" href="struct.TextWriter.html" title="struct bevy_text::TextWriter">Text<wbr>Writer</a></div><div class="desc docblock-short">System parameter for reading and writing text spans in a text block.</div></li><li><div class="item-name"><a class="struct" href="struct.Update2dText.html" title="struct bevy_text::Update2dText">Update2d<wbr>Text</a></div><div class="desc docblock-short">System set in <a href="../bevy_app/main_schedule/struct.PostUpdate.html" title="struct bevy_app::main_schedule::PostUpdate"><code>PostUpdate</code></a> where all 2d text update systems are executed.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.FontFamily.html" title="enum bevy_text::FontFamily">Font<wbr>Family</a></div><div class="desc docblock-short">An owned version of <a href="../fontdb/enum.Family.html" title="enum fontdb::Family"><code>Family</code></a></div></li><li><div class="item-name"><a class="enum" href="enum.FontLoaderError.html" title="enum bevy_text::FontLoaderError">Font<wbr>Loader<wbr>Error</a></div><div class="desc docblock-short">Possible errors that can be produced by <a href="struct.FontLoader.html" title="struct bevy_text::FontLoader"><code>FontLoader</code></a></div></li><li><div class="item-name"><a class="enum" href="enum.FontSmoothing.html" title="enum bevy_text::FontSmoothing">Font<wbr>Smoothing</a></div><div class="desc docblock-short">Determines which antialiasing method to use when rendering text. By default, text is
|
|
rendered with grayscale antialiasing, but this can be changed to achieve a pixelated look.</div></li><li><div class="item-name"><a class="enum" href="enum.FontStretch.html" title="enum bevy_text::FontStretch">Font<wbr>Stretch</a></div><div class="desc docblock-short">A face <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswidthclass">width</a>.</div></li><li><div class="item-name"><a class="enum" href="enum.FontStyle.html" title="enum bevy_text::FontStyle">Font<wbr>Style</a></div><div class="desc docblock-short">Allows italic or oblique faces to be selected.</div></li><li><div class="item-name"><a class="enum" href="enum.JustifyText.html" title="enum bevy_text::JustifyText">Justify<wbr>Text</a></div><div class="desc docblock-short">Describes the horizontal alignment of multiple lines of text relative to each other.</div></li><li><div class="item-name"><a class="enum" href="enum.LineBreak.html" title="enum bevy_text::LineBreak">Line<wbr>Break</a></div><div class="desc docblock-short">Determines how lines will be broken when preventing text from running out of bounds.</div></li><li><div class="item-name"><a class="enum" href="enum.TextError.html" title="enum bevy_text::TextError">Text<wbr>Error</a></div><div class="desc docblock-short">Errors related to the textsystem</div></li><li><div class="item-name"><a class="enum" href="enum.YAxisOrientation.html" title="enum bevy_text::YAxisOrientation">YAxis<wbr>Orientation</a></div><div class="desc docblock-short">Text is rendered for two different view projections;
|
|
2-dimensional text (<a href="struct.Text2d.html" title="struct bevy_text::Text2d"><code>Text2d</code></a>) is rendered in “world space” with a <code>BottomToTop</code> Y-axis,
|
|
while UI is rendered with a <code>TopToBottom</code> Y-axis.
|
|
This matters for text because the glyph positioning is different in either layout.
|
|
For <code>TopToBottom</code>, 0 is the top of the text, while for <code>BottomToTop</code> 0 is the bottom.</div></li></ul><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.DEFAULT_FONT_DATA.html" title="constant bevy_text::DEFAULT_FONT_DATA">DEFAULT_<wbr>FONT_<wbr>DATA</a></div><div class="desc docblock-short">The raw data for the default font used by <code>bevy_text</code></div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.TextRoot.html" title="trait bevy_text::TextRoot">Text<wbr>Root</a></div><div class="desc docblock-short">Helper trait for the root text component in a text block.</div></li><li><div class="item-name"><a class="trait" href="trait.TextSpanAccess.html" title="trait bevy_text::TextSpanAccess">Text<wbr>Span<wbr>Access</a></div><div class="desc docblock-short">Helper trait for using the <a href="struct.TextReader.html" title="struct bevy_text::TextReader"><code>TextReader</code></a> and <a href="struct.TextWriter.html" title="struct bevy_text::TextWriter"><code>TextWriter</code></a> system params.</div></li><li><div class="item-name"><a class="trait" href="trait.TextSpanComponent.html" title="trait bevy_text::TextSpanComponent">Text<wbr>Span<wbr>Component</a></div><div class="desc docblock-short">Helper trait for the text span components in a text block.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.calculate_bounds_text2d.html" title="fn bevy_text::calculate_bounds_text2d">calculate_<wbr>bounds_<wbr>text2d</a></div><div class="desc docblock-short">System calculating and inserting an <a href="../bevy_render/primitives/struct.Aabb.html" title="struct bevy_render::primitives::Aabb"><code>Aabb</code></a> component to entities with some
|
|
<a href="struct.TextLayoutInfo.html" title="struct bevy_text::TextLayoutInfo"><code>TextLayoutInfo</code></a> and <a href="../bevy_sprite/sprite/enum.Anchor.html" title="enum bevy_sprite::sprite::Anchor"><code>Anchor</code></a> components, and without a <a href="../bevy_render/view/visibility/struct.NoFrustumCulling.html" title="struct bevy_render::view::visibility::NoFrustumCulling"><code>NoFrustumCulling</code></a> component.</div></li><li><div class="item-name"><a class="fn" href="fn.detect_text_needs_rerender.html" title="fn bevy_text::detect_text_needs_rerender">detect_<wbr>text_<wbr>needs_<wbr>rerender</a></div><div class="desc docblock-short">System that detects changes to text blocks and sets <code>ComputedTextBlock::should_rerender</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.extract_text2d_sprite.html" title="fn bevy_text::extract_text2d_sprite">extract_<wbr>text2d_<wbr>sprite</a></div><div class="desc docblock-short">This system extracts the sprites from the 2D text components and adds them to the
|
|
“render world”.</div></li><li><div class="item-name"><a class="fn" href="fn.remove_dropped_font_atlas_sets.html" title="fn bevy_text::remove_dropped_font_atlas_sets">remove_<wbr>dropped_<wbr>font_<wbr>atlas_<wbr>sets</a></div><div class="desc docblock-short">A system that cleans up <a href="struct.FontAtlasSet.html" title="struct bevy_text::FontAtlasSet"><code>FontAtlasSet</code></a>s for removed <a href="struct.Font.html" title="struct bevy_text::Font"><code>Font</code></a>s</div></li><li><div class="item-name"><a class="fn" href="fn.scale_value.html" title="fn bevy_text::scale_value">scale_<wbr>value</a></div><div class="desc docblock-short">Scales <code>value</code> by <code>factor</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.update_text2d_layout.html" title="fn bevy_text::update_text2d_layout">update_<wbr>text2d_<wbr>layout</a></div><div class="desc docblock-short">Updates the layout and size information whenever the text or style is changed.
|
|
This information is computed by the <a href="struct.TextPipeline.html" title="struct bevy_text::TextPipeline"><code>TextPipeline</code></a> on insertion, then stored.</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.Text2dReader.html" title="type bevy_text::Text2dReader">Text2d<wbr>Reader</a></div><div class="desc docblock-short">2d alias for <a href="struct.TextReader.html" title="struct bevy_text::TextReader"><code>TextReader</code></a>.</div></li><li><div class="item-name"><a class="type" href="type.Text2dWriter.html" title="type bevy_text::Text2dWriter">Text2d<wbr>Writer</a></div><div class="desc docblock-short">2d alias for <a href="struct.TextWriter.html" title="struct bevy_text::TextWriter"><code>TextWriter</code></a>.</div></li></ul></section></div></main></body></html> |