summaryrefslogtreecommitdiff
path: root/src/library/text/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-13 15:30:10 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-13 16:01:24 +0200
commitb274155c6d36dfe956899e3606b535cc94c8aca9 (patch)
tree67a439c1a5ecefc1de24099df6e9c2ebb58c1128 /src/library/text/mod.rs
parentd025854457b4c2d1c2285bd1c5e795edad79a749 (diff)
Improve language and add region controls
Diffstat (limited to 'src/library/text/mod.rs')
-rw-r--r--src/library/text/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/text/mod.rs b/src/library/text/mod.rs
index 636b878c..0eb57339 100644
--- a/src/library/text/mod.rs
+++ b/src/library/text/mod.rs
@@ -65,8 +65,10 @@ impl TextNode {
/// The bottom end of the text bounding box.
pub const BOTTOM_EDGE: TextEdge = TextEdge::Metric(VerticalFontMetric::Baseline);
- /// An ISO 639-1 language code.
+ /// An ISO 639-1/2/3 language code.
pub const LANG: Lang = Lang::ENGLISH;
+ /// An ISO 3166-1 alpha-2 region code.
+ pub const REGION: Option<Region> = None;
/// The direction for text and inline objects. When `auto`, the direction is
/// automatically inferred from the language.
#[property(resolve)]