diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-07-27 00:09:15 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-07-27 00:09:15 +0200 |
| commit | 9362c279de362eac1b7ec76834dd76a0235c5dd2 (patch) | |
| tree | fdcec0de57deac0f94c2b4521ff09e94b1c785ee /src/lib.rs | |
| parent | fc574b39454aec77cf2c33270566225917c7c823 (diff) | |
CSV reading
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -79,6 +79,8 @@ pub fn typeset(ctx: &mut Context, id: SourceId) -> TypResult<Vec<Frame>> { /// The core context which holds the configuration and stores. pub struct Context { + /// The loader for fonts and files. + pub loader: Arc<dyn Loader>, /// Stores loaded source files. pub sources: SourceStore, /// Stores parsed font faces. @@ -97,6 +99,7 @@ impl Context { /// Create a new context. pub fn new(loader: Arc<dyn Loader>, config: Config) -> Self { Self { + loader: Arc::clone(&loader), sources: SourceStore::new(Arc::clone(&loader)), fonts: FontStore::new(Arc::clone(&loader)), images: ImageStore::new(loader), |
