Skip to main content
Topic: NWC2STDA font in a table (Read 5952 times) previous topic - next topic

NWC2STDA font in a table

Hi all,

Today, when rummaging through paper, I found an HTML page with some JavaScript in it.
I added a table for better display. Maybe it's completely useless, but I found it fun.
Create DisplayFont.html with the text below and view in a browser. (And I do not know who the writer of the original is... Anyone?)

cheers,
Rob.


<html>
<head>
<title>The Noteworthy NWC2STDA Font</title>
</head>
<body>

NWC2STDA font<br><br>

<table border=1>
<tr>
<script language="javascript">
for (var i=41;i<=150;i++) {
  document.write("<td> &nbsp;" + i + " &#" + i + "; <font face=NWC2STDA size=+4>&#" + i + ";</font> &nbsp;</td>");
    if (!(i % 10))
      document.write("</tr><tr>");
  }

</script>
</tr>
</table>
<br>
End of font display.
</body>

Re: NWC2STDA font in a table

Reply #1
oh... I see that I could have the variable run from 31 to 160. It adds a few more characters.
Maybe the font was different (less characters defined) when the script was first written.

Re: NWC2STDA font in a table

Reply #2
It covers most of ones needs.
Registered user since 1996

 

Re: NWC2STDA font in a table

Reply #3
Can't swear to it, but it was probably me on a previous computer.  This is the closest thing I have to it now:
Code: [Select · Download]
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>The FretQwikC font</title>
</head>

<body>

<SCRIPT type="text/javascript">
document.write('<html><head><title>The FretQwikC font</title></head><body><font size="+4">');

for (var i=1; i<256; i++) {
  document.write("&#" + i + "; " + i + " <font face='FretQwikC'>&#" + i + ";</font>\n");
  if (!(i % 8)) document.write("<br>\n");
  }
document.write("</font></body></html>"); 
 
</script>

</body>

</html>
You can save it as a file ending in .html, perhaps after doing a global replace on FretQwickC to another font and run it.
Since 1998