Speed up glyph embedding in the compiler

Enable the use of parallel glyph outline extraction in fontdue.

Brings down the time of

   touch tests/screenshots/build.rs
   cargo build -p test-driver-screenshots

on my xps13 linux from 3m30s to 1m26s.
This commit is contained in:
Simon Hausmann 2024-07-24 11:41:39 +02:00 committed by Simon Hausmann
parent 782bf6e7c6
commit ad6e12dacf

View file

@ -57,7 +57,7 @@ linked_hash_set = "0.1.4"
image = { workspace = true, optional = true, features = ["default"] }
resvg = { workspace = true, optional = true }
# font embedding
fontdue = { workspace = true, optional = true }
fontdue = { workspace = true, optional = true, features = ["parallel"] }
[dev-dependencies]
i-slint-parser-test-macro = { path = "./parser-test-macro" }