servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.52k stars 198 forks source link

Fix #553 #555

Closed s3bk closed 3 months ago

s3bk commented 4 months ago

This replaces two unwraps with Results and makes PFCanvasSetFontByPostScriptName return an i32 to indicate success or failure. Intended to fix #553

s3bk commented 4 months ago

Yea. This isn't really possible without breaking existing code. I modified it a bit so the underlying errors are available and the unwrap() works.

s3bk commented 4 months ago

@jayvdb can you review it again?