Quote:
Originally Posted by kovidgoyal
While in this case it is easy to deduce which is the correct font, in the general case it is not so easy. Remember that there are four axes on which font properties must be matched, so the search space is rather large and you can have many candidates. As such, I think showing the user the candidates and letting them pick manually is better than auto-picking one, which could very well be wrong. Not to mention that this problem only happens for special purpose fonts i.e. ones that do not have regular weight or stretch properties, which is relative rare.
|
After thinking some more about it, I decided to implement the fallback mechanism after all. The idea being that even if it gets it wrong, thanks tot he checkpoint mechanism, it is easy for the user to revert the changes and manually edit the styles for the fonts based on the generated report.
https://github.com/kovidgoyal/calibr...0ccadbac0a03bb
This is going to need some testing.