From: Mischa POSLAWSKY Date: Sun, 19 Apr 2015 19:32:07 +0000 (+0200) Subject: font: css rule to download font X-Git-Tag: v1.7~2 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/aec77d22f1e68b14edf34a244153f2988f1e4114 font: css rule to download font Ensure correct display even if client does not have local install. --- diff --git a/font.plp b/font.plp index 547b297..af7743b 100644 --- a/font.plp +++ b/font.plp @@ -69,6 +69,10 @@ if (my $font = $ENV{PATH_INFO} =~ s{^/}{}r) { .glyphs tbody th[!colspan] { text-align: right } .glyphs tbody td { font-family: "$fontmeta->{name}" } .glyphs tbody td:nth-child(18) { border-left-width: 2px } + \@font-face { + font-family: "$fontmeta->{name}"; + src: url(/data/font/$font.ttf); + } EOT say '';