usabilla / button-generator

Node module that generates a button image.
1 stars 0 forks source link

fix(font): custom font css applies correctly #19

Closed pietvanzoen closed 7 years ago

pietvanzoen commented 7 years ago

Reviewers: @beerecca @dine @pietvanzoen @tjinauyeung

Custom font css was not being applied to the button unless the font already existed in your local font directory. Fonts from the CSS file were not loaded.

Fix is to use svg2png which renders the svg buffer in PhantomJS and pulls an image from there.

Also removed some extrenuous methods that cuased issues when applying fix and were not being used anywhere.

Closes https://usabilla.atlassian.net/browse/FOO-63

pietvanzoen commented 7 years ago

@beerecca updated