mogest/prawn-svg — pull request #20 by plehoux (2012-10-23 20:46:03+00:00)
Title: Add font-weight numerical range and fix installed_fonts

Hi mogest,

Support font-weight [100..900] range. It is not compatible with every fonts, but it is better then the actual support. To get a better one we would need to read the 'OS/2' table from .ttf field to match css weight with actual font data.

Fix the bug where setting weight + style was failing (Only italic was applied).

Improve the installed fonts algo, now it is better at guessing subfamily. (I used field 16 and 17 from table 'name' from .tff file when available). Tested with Open Sans.

This is something that I really need so I will do what I it takes to get it merge, tell me what you think.
;-)