get-font-styles
This is a tiny module that takes a DOM element as input and returns an object
with that element and a styles
array with the following properties:
font-family
, font-size
, font-weight
, font-style
.
Basic usage
var getFontStyles = ; ;
More Realistic Usage
document; /* { element: <div id="test1" style="font-family: Helvetica; font-size: 16px; font-weight: 400; font-style: normal;"></div>, styles: [ {'font-family': 'Helvetica'}, {'font-size': '16px'}, {'font-weight': '400'}, {'font-style': 'normal'} ] } */