mirror of
https://github.com/typst/typst
synced 2025-08-15 15:38:33 +08:00
Reformat
This commit is contained in:
parent
2e141dcf9b
commit
8d58e747c8
@ -187,8 +187,12 @@ fn convert_raster(
|
||||
let i: Arc<dyn AsRef<[u8]> + Send + Sync> = Arc::new(i.clone());
|
||||
i
|
||||
});
|
||||
|
||||
krilla::image::Image::from_jpeg_with_icc(image_data.into(), icc_profile.map(|i| i.into()), interpolate)
|
||||
|
||||
krilla::image::Image::from_jpeg_with_icc(
|
||||
image_data.into(),
|
||||
icc_profile.map(|i| i.into()),
|
||||
interpolate,
|
||||
)
|
||||
} else {
|
||||
krilla::image::Image::from_custom(PdfImage::new(raster), interpolate)
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ fn convert_font(
|
||||
fn build_font(typst_font: Font) -> SourceResult<krilla::text::Font> {
|
||||
let font_data: Arc<dyn AsRef<[u8]> + Send + Sync> =
|
||||
Arc::new(typst_font.data().clone());
|
||||
|
||||
|
||||
match krilla::text::Font::new(font_data.into(), typst_font.index(), true) {
|
||||
None => {
|
||||
let font_str = display_font(&typst_font);
|
||||
|
Loading…
x
Reference in New Issue
Block a user