Skip to main content

pushrod/text/
mod.rs

1// Text Layout
2// Pushrod
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Text layout: the [`TextLayout`] trait, its per-widget [`LayoutCache`], and (with the `parley`
17//! feature) the Parley engine.  See [`layout`] for the overview.
18
19pub mod layout;
20#[cfg(feature = "parley")]
21pub mod parley_layout;
22#[cfg(feature = "parley")]
23pub mod raster;
24
25pub use layout::{
26    FontData, GlyphRun, LaidOut, LayoutCache, Line, PositionedGlyph, TextGeometry, TextLayout,
27};
28#[cfg(feature = "parley")]
29pub use parley_layout::ParleyLayout;