Calligraphy icon indicating copy to clipboard operation
Calligraphy copied to clipboard

Feature request: strict mode

Open tmtrademarked opened this issue 8 years ago • 2 comments

From what I can tell today, Calligraphy is mostly set up to be tolerant of errors in finding fonts. A useful feature for development would be the ability to turn on a strict mode where failure to load the font crashes the app.

As far as I can tell, this would be a pretty easy thing to add. It looks like it would basically be sufficient to add an option to CalligraphyConfig/Builder and then check that in TypefaceUtils.

I'd be happy to send a PR implementing this if desired.

tmtrademarked avatar Jan 11 '17 17:01 tmtrademarked

Sure, I have no ETA, but I get what you are asking, we need to do more around error handling as well.

chrisjenx avatar Jan 12 '17 23:01 chrisjenx

This might be fixable through #350 but will leave it open until I have a better idea how to handle this.

chrisjenx avatar Jan 12 '17 23:01 chrisjenx