DmitryBaranovskiy/raphael — pull request #903 by tasior (2014-09-12 11:30:28+00:00)
Title: Bug fix: incorrect font selected

Style is ignored when there is no font-style in registered font.
This bug can be reproduced at http://jsfiddle.net/tasior/z13Lgk1a/
Following condition is wrong:
(thefont.face["font-style"] == style || !thefont.face["font-style"])
When you register font without "font-style" and then another in same family and same weight it will pick the first one always.