font: css rule to download font
[sheet.git] / font.plp
index 547b297d31c10661f0743fca941c4ea2632ccf32..af7743b6385de358ffe1497458bcbea5d0d0e3c3 100644 (file)
--- 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 }
        .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);
+       }
 </style>
 EOT
        say '<table class="glyphs big">';
 </style>
 EOT
        say '<table class="glyphs big">';