Search found 3 matches

by daneren2005
2015-07-21T14:16:53-07:00
Forum: Users
Topic: RSVG Custom Fonts
Replies: 3
Views: 4412

Re: RSVG Custom Fonts

For anyone else who comes across this, I ended up figuring out that calling rsvg directly would load fonts from the local home directory. Example: /var/www/.fonts/truetype/google/anton.tff would be automatically loaded. Then you can run exec("rsvg-convert $svgFile > $pngFile");. You have to manually ...
by daneren2005
2015-07-21T11:10:29-07:00
Forum: Users
Topic: RSVG Custom Fonts
Replies: 3
Views: 4412

Re: RSVG Custom Fonts

I also attempted to embed the fonts directly into the SVG file, but that also does not work: $fontStyles = ''; foreach($this->fonts as $font) { $fontStyles .= '@font-face { font-family: ' . $font['name'] . '; src: url("data:application/x-font-ttf;charset=utf-8;base64,' . base64_encode(file_get ...
by daneren2005
2015-07-20T17:40:17-07:00
Forum: Users
Topic: RSVG Custom Fonts
Replies: 3
Views: 4412

RSVG Custom Fonts

In several places about bad ImageMagick SVG output, it was recommended to use RSVG instead. I have compiled ImageMagick and Imagick with RSVG successfully, and it does indeed make everything look much better. My problem is I had a little hack to get Google fonts to work with Imagick that now does ...