Fix typos
This commit is contained in:
parent
5f8f149444
commit
24cd711f5b
|
|
@ -3597,7 +3597,7 @@ impl Context {
|
|||
///
|
||||
/// This is the easier type of viewport to use, but it is less performant
|
||||
/// at it requires both parent and child to repaint if any one of them needs repainting,
|
||||
/// which efficvely produce double work for two viewports, and triple work for three viewports, etc.
|
||||
/// which effectively produce double work for two viewports, and triple work for three viewports, etc.
|
||||
/// To avoid this, use [`Self::show_viewport_deferred`] instead.
|
||||
///
|
||||
/// The given id must be unique for each viewport.
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ impl CubicBezierShape {
|
|||
}
|
||||
}
|
||||
|
||||
// copied from lyon::geom::flattern_cubic.rs
|
||||
// copied from <https://docs.rs/lyon_geom/latest/src/lyon_geom/cubic_bezier.rs.html#384-396>
|
||||
// Computes the number of quadratic bézier segments to approximate a cubic one.
|
||||
// Derived by Raph Levien from section 10.6 of Sedeberg's CAGD notes
|
||||
// https://scholarsarchive.byu.edu/cgi/viewcontent.cgi?article=1000&context=facpub#section.10.6
|
||||
|
|
|
|||
|
|
@ -1001,7 +1001,7 @@ pub struct TextShape {
|
|||
pub underline: Stroke,
|
||||
|
||||
/// Any [`Color32::PLACEHOLDER`] in the galley will be replaced by the given color.
|
||||
/// Affects everything: backgrounds, glyphs, strikethough, underline, etc.
|
||||
/// Affects everything: backgrounds, glyphs, strikethrough, underline, etc.
|
||||
pub fallback_color: Color32,
|
||||
|
||||
/// If set, the text color in the galley will be ignored and replaced
|
||||
|
|
@ -1011,7 +1011,7 @@ pub struct TextShape {
|
|||
pub override_text_color: Option<Color32>,
|
||||
|
||||
/// If set, the text will be rendered with the given opacity in gamma space
|
||||
/// Affects everything: backgrounds, glyphs, strikethough, underline, etc.
|
||||
/// Affects everything: backgrounds, glyphs, strikethrough, underline, etc.
|
||||
pub opacity_factor: f32,
|
||||
|
||||
/// Rotate text by this many radians clockwise.
|
||||
|
|
|
|||
Loading…
Reference in New Issue