2012-09-29 External Fonts for SVG Files

I was writing a Perl CGI script that takes a SVG file I created with Inkscape, replaces a few placeholders and serves it via the web. How to supply this SVG file with an external TrueType font?

a Perl CGI

TrueType

http://campaignwiki.org/Purisa.ttf

AddType application/x-font-ttf        .ttf

If you are creating a new `.htaccess` file, remember it needs a permission like `-rw-r--r--`.

  <style
     type="text/css">
      @font-face {
          font-family: 'Purisa';
          src: local('Purisa'),
               url('/Purisa.ttf') format('truetype');
      }
  </style>

support IE

another MIME type

using ttf2eot on the web

​#Software ​#Web