diff options
| author | Martin Haug <mhaug@live.de> | 2022-05-11 15:19:03 +0200 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2022-05-11 16:25:49 +0200 |
| commit | 84bd3454df487500d8a084190b4a10eac2a9f0f1 (patch) | |
| tree | c98b688cc02564a287de43d45abf3d5dad576338 /src/frame.rs | |
| parent | a247653cd0f324bf6985c963d958348e29ade334 (diff) | |
Write language and direction for PDFs
Diffstat (limited to 'src/frame.rs')
| -rw-r--r-- | src/frame.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frame.rs b/src/frame.rs index 80e25f3b..04551e6e 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -8,6 +8,7 @@ use crate::geom::{ Align, Em, Length, Numeric, Paint, Point, Shape, Size, Spec, Transform, }; use crate::image::ImageId; +use crate::library::text::Lang; use crate::util::{EcoString, MaybeShared}; /// A finished layout with elements at fixed positions. @@ -269,6 +270,8 @@ pub struct Text { pub size: Length, /// Glyph color. pub fill: Paint, + /// The natural language of the text. + pub lang: Lang, /// The glyphs. pub glyphs: Vec<Glyph>, } |
