Crash on Windows
paulrouget opened this issue · 2 comments
paulrouget commented
We package Servo within a UWP app, which does not allow access to the file system.
When using canvas.fillText()
in Servo, it crashes: servo/servo#26015
Enabling the UWP capability broadFileSystemAccess solves the issue, but this will make it harder to submit the app to the Windows Store.
paulrouget commented
Enabling the UWP capability broadFileSystemAccess solves the issue
Actually I'm not sure about that capability. Still experimenting.
paulrouget commented
I'm actually not sure it's a sandbox issue.
I see that fontkit is looking for these files for SansSerif fonts:
"C:\\WINDOWS\\FONTS\\ARIAL.TTF"
"C:\\WINDOWS\\FONTS\\ARIALI.TTF"
"C:\\WINDOWS\\FONTS\\ARIALBD.TTF"
"C:\\WINDOWS\\FONTS\\ARIALBI.TTF"
"C:\\WINDOWS\\FONTS\\ARIBLK.TTF"
"C:\\WINDOWS\\FONTS\\ARIAL.TTF"
"C:\\WINDOWS\\FONTS\\ARIALBD.TTF"
"C:\\WINDOWS\\FONTS\\ARIBLK.TTF"
… which do not exist.
I think font-kit should not unwrap here, and just push if the result is Ok.
Servo should also do something better if not fonts are found.