This doesn't handle the case where a font is in the format "24px bold Arial". I think we should reconsider a different method of passing this data, instead of parsing a string.