dev: collect server's font paths information (#168)

This commit is contained in:
Myriad-Dreamin 2024-04-06 13:45:52 +08:00 committed by GitHub
parent 61851f1300
commit 8378d06ab6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -443,9 +443,7 @@ impl CompileClientActor {
let info = ServerInfoReponse {
root: cc.world().entry.root().map(|e| e.as_ref().to_owned()),
// todo: font paths
// font_paths: cc.world().font_resolver.inner,
font_paths: vec![],
font_paths: cc.world().font_resolver.font_paths().to_owned(),
inputs: cc.world().inputs.as_ref().deref().clone(),
estimated_memory_usage: HashMap::from_iter([
("vfs".to_owned(), { cc.world().vfs.memory_usage() }),