Fixes a bug in font family lookup.  Any font in the font alias
list (e.g. font.sans-serif) would be considered a perfect match whenever
the selected font alias is the first in the font.family list.  This
broke the priority ordering of font names.
Add test
Use assert_equal
No need to cast to floats with future division
Merge pull request #2771 from mdboom/fonts/fix-lookup-mechanism

Fix font family lookup calculation