diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-03 16:50:26 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-03 16:50:26 +0100 |
| commit | 33928a00dc58250e24da1dae4e5db17e7b598d70 (patch) | |
| tree | 451083aa64f57b442359875b0415541463cb1a0c /library/src/text/mod.rs | |
| parent | 46921a8c283718402322d4d09c0bd1d9194278b1 (diff) | |
Tidy up library
Diffstat (limited to 'library/src/text/mod.rs')
| -rw-r--r-- | library/src/text/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs index d793f614..61edacbe 100644 --- a/library/src/text/mod.rs +++ b/library/src/text/mod.rs @@ -11,7 +11,6 @@ mod shift; pub use deco::*; pub use link::*; pub use par::*; -pub use quotes::*; pub use raw::*; pub use shaping::*; pub use shift::*; @@ -22,6 +21,7 @@ use rustybuzz::Tag; use typst::font::{FontMetrics, FontStretch, FontStyle, FontWeight, VerticalFontMetric}; use typst::util::EcoString; +use self::quotes::*; use crate::prelude::*; /// A single run of text with the same style. @@ -107,22 +107,22 @@ impl TextNode { /// Whether the font weight should be increased by 300. #[property(skip, fold)] - pub const BOLD: Toggle = false; + pub(super) const BOLD: Toggle = false; /// Whether the font style should be inverted. #[property(skip, fold)] - pub const ITALIC: Toggle = false; + pub(super) const ITALIC: Toggle = false; /// A case transformation that should be applied to the text. #[property(skip)] - pub const CASE: Option<Case> = None; + pub(super) const CASE: Option<Case> = None; /// Whether small capital glyphs should be used. ("smcp") #[property(skip)] - pub const SMALLCAPS: bool = false; + pub(super) const SMALLCAPS: bool = false; /// A destination the text should be linked to. #[property(skip, referenced)] - pub const LINK: Option<Destination> = None; + pub(crate) const LINK: Option<Destination> = None; /// Decorative lines. #[property(skip, fold)] - pub const DECO: Decoration = vec![]; + pub(super) const DECO: Decoration = vec![]; fn construct(_: &mut Vm, args: &mut Args) -> SourceResult<Content> { // The text constructor is special: It doesn't create a text node. |
