Jörg Reinholz: Ubuntu: Ungewöhnliche Schriftarten sehen und verwenden

Beitrag lesen

Moin!

ich habe die Schriftart notes-normal.ttf für musikalische Zeichen in ein Verzeichnis kopiert und in ein HTML-Dokument eingebunden.

<html>
    <head>
        <style>
        // includiere Deine Schrift wie gehabt
        td.note { font-family: notes-normal.ttf;}
        </style>
    </head>
    <body>
        <div id="ausgabe"></div>
        <script>
            var t='<table border=1>'
            for (i=1; i<256; i++) {
            t= t + '<tr><th>' + i + '</th><td>' + String.fromCharCode(i) + '</td><td class="note">' + String.fromCharCode(i) + '</td></tr>';
            }
            t = t + '</table>';
            document.getElementById('ausgabe').innerHTML=t;
        </script>
    </body>
</html>

Jörg Reinholz