mirror of
https://github.com/Garmelon/Arbeitszeitdokumentationsgenerator.git
synced 2026-04-12 08:45:05 +02:00
Update typst dependency to 0.13.1
This commit is contained in:
parent
2793a9296a
commit
fdffbcab79
3 changed files with 214 additions and 130 deletions
|
|
@ -169,8 +169,8 @@ impl FontSlot {
|
|||
pub fn get(&self) -> Option<Font> {
|
||||
self.font
|
||||
.get_or_init(|| {
|
||||
let data = fs::read(&self.path).ok()?.into();
|
||||
Font::new(data, self.index)
|
||||
let data = fs::read(&self.path).ok()?;
|
||||
Font::new(Bytes::new(data), self.index)
|
||||
})
|
||||
.clone()
|
||||
}
|
||||
|
|
@ -249,7 +249,7 @@ impl World for DummyWorld {
|
|||
fn file(&self, id: FileId) -> FileResult<Bytes> {
|
||||
let path = id.vpath().as_rootless_path();
|
||||
match path.to_string_lossy().as_ref() {
|
||||
LOGO_NAME => Ok(Bytes::from_static(LOGO.as_bytes())),
|
||||
LOGO_NAME => Ok(Bytes::new(LOGO.as_bytes())),
|
||||
_ => Err(FileError::NotFound(path.to_path_buf())),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue