Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <title>CSS Fonts</title>
- <!-- https://fonts.google.com/ Providing Over 800 Free Web Fonts -->
- <FONT face="verdana" size=6pt color=green><b>CSS Font Viewer</b></FONT>
- </header>
- </head>
- <body>
- <style>
- html {
- font: 24px Helvetica, sans-serif;
- }
- p {
- color: blue;
- font: 16px Helvetica, sans-serif;
- margin: 2px;
- }
- </style>
- <p>To quickly preview...
- <select id="fontfamily">
- <option>-- Choose a font --</option><option style="font-family:algerian" id="algerian" value="algerian">algerian</option>
- <option style="font-family:amaze" id="amaze" value="amaze">amaze</option>
- <option style="font-family:arial black" id="arialblack" value="arial black">arial black</option>
- <option style="font-family:arial unicode ms" id="arialunicodems" value="arial unicode ms">arial unicode ms</option>
- <option style="font-family:arial" id="arial" value="arial">arial</option>
- <option style="font-family:balthazar" id="balthazar" value="balthazar">balthazar</option>
- <option style="font-family:bart" id="bart" value="bart">bart</option>
- <option style="font-family:book antiqua" id="bookantiqua" value="book antiqua">book antiqua</option>
- <option style="font-family:bookman old style" id="bookmanoldstyle" value="bookman old style">bookman old style</option>
- <option style="font-family:braggadocio" id="braggadocio" value="braggadocio">braggadocio</option>
- <option style="font-family:britannic bold" id="britannicbold" value="britannic bold">britannic bold</option>
- <option style="font-family:brush script mt" id="brushscriptmt" value="brush script mt">brush script mt</option>
- <option style="font-family:century gothic" id="centurygothic" value="century gothic">century gothic</option>
- <option style="font-family:century" id="century" value="century">century</option>
- <option style="font-family:chicago" id="chicago" value="chicago">chicago</option>
- <option style="font-family:colonna mt" id="colonnamt" value="colonna mt">colonna mt</option>
- <option style="font-family:comic sans ms" id="comicsansms" value="comic sans ms">comic sans ms</option>
- <option style="font-family:copperplate gothic bold" id="copperplategothicbold" value="copperplate gothic bold">copperplate gothic bold</option>
- <option style="font-family:courier" id="courier" value="courier">courier</option>
- <option style="font-family:cursive" id="cursive" value="cursive">cursive</option>
- <option style="font-family:desdemona" id="desdemona" value="desdemona">desdemona</option>
- <option style="font-family:elephant" id="elephant" value="elephant">elephant</option>
- <option style="font-family:fantasy" id="fantasy" value="fantasy">fantasy</option>
- <option style="font-family:footlight mt light" id="footlightmtlight" value="footlight mt light">footlight mt light</option>
- <option style="font-family:futurablack BT" id="futurablackBT" value="futurablack BT">futurablack BT</option>
- <option style="font-family:futuralight BT" id="futuralightBT" value="futuralight BT">futuralight BT</option>
- <option style="font-family:garamond" id="garamond" value="garamond">garamond</option>
- <option style="font-family:gaze" id="gaze" value="gaze">gaze</option>
- <option style="font-family:geneva" id="geneva" value="geneva">geneva</option>
- <option style="font-family:georgia" id="georgia" value="georgia">georgia</option>
- <option style="font-family:georgia" id="georgia" value="georgia">georgia</option>
- <option style="font-family:harrington" id="harrington" value="harrington">harrington</option>
- <option style="font-family:helterskelter" id="helterskelter" value="helterskelter">helterskelter</option>
- <option style="font-family:helvetica" id="helvetica" value="helvetica">helvetica</option>
- <option style="font-family:herman" id="herman" value="herman">herman</option>
- <option style="font-family:impact" id="impact" value="impact">impact</option>
- <option style="font-family:jester" id="jester" value="jester">jester</option>
- <option style="font-family:john handy LET" id="johnhandyLET" value="john handy LET">john handy LET</option>
- <option style="font-family:jokerman LET" id="jokermanLET" value="jokerman LET">jokerman LET</option>
- <option style="font-family:lithograph" id="lithograph" value="lithograph">lithograph</option>
- <option style="font-family:lucida console" id="lucidaconsole" value="lucida console">lucida console</option>
- <option style="font-family:map symbols" id="mapsymbols" value="map symbols">map symbols</option>
- <option style="font-family:marlett" id="marlett" value="marlett">marlett</option>
- <option style="font-family:matisse ITC" id="matisseITC" value="matisse ITC">matisse ITC</option>
- <option style="font-family:matteroffact" id="matteroffact" value="matteroffact">matteroffact</option>
- <option style="font-family:matura mt script capitals" id="maturamtscriptcapitals" value="matura mt script capitals">matura mt script capitals</option>
- <option style="font-family:mekanik LET" id="mekanikLET" value="mekanik LET">mekanik LET</option>
- <option style="font-family:monaco" id="monaco" value="monaco">monaco</option>
- <option style="font-family:monospace" id="monospace" value="monospace">monospace</option>
- <option style="font-family:palatino" id="palatino" value="palatino">palatino</option>
- <option style="font-family:papyrus" id="papyrus" value="papyrus">papyrus</option>
- <option style="font-family:playbill" id="playbill" value="playbill">playbill</option>
- <option style="font-family:poor richard" id="poorrichard" value="poor richard">poor richard</option>
- <option style="font-family:puppylike" id="puppylike" value="puppylike">puppylike</option>
- <option style="font-family:rockwell" id="rockwell" value="rockwell">rockwell</option>
- <option style="font-family:roland" id="roland" value="roland">roland</option>
- <option style="font-family:sans-serif" id="sans-serif" value="sans-serif">sans-serif</option>
- <option style="font-family:serif" id="serif" value="serif">serif</option>
- <option style="font-family:short hand" id="shorthand" value="short hand">short hand</option>
- <option style="font-family:showcard gothic" id="showcardgothic" value="showcard gothic">showcard gothic</option>
- <option style="font-family:simplex" id="simplex" value="simplex">simplex</option>
- <option style="font-family:simpson" id="simpson" value="simpson">simpson</option>
- <option style="font-family:stylus BT" id="stylusBT" value="stylus BT">stylus BT</option>
- <option style="font-family:surfer" id="surfer" value="surfer">surfer</option>
- <option style="font-family:symbol" id="symbol" value="symbol">symbol</option>
- <option style="font-family:tahoma" id="tahoma" value="tahoma">tahoma</option>
- <option style="font-family:technic" id="technic" value="technic">technic</option>
- <option style="font-family:tempus sans ITC" id="tempussansITC" value="tempus sans ITC">tempus sans ITC</option>
- <option style="font-family:times new roman" id="timesnewroman" value="times new roman">times new roman</option>
- <option style="font-family:times" id="times" value="times">times</option>
- <option style="font-family:trebuchet MS" id="trebuchetMS" value="trebuchet MS">trebuchet MS</option>
- <option style="font-family:verdana" id="verdana" value="verdana">verdana</option>
- <option style="font-family:victorian LET" id="victorianLET" value="victorian LET">victorian LET</option>
- <option style="font-family:vineta BT" id="vinetaBT" value="vineta BT">vineta BT</option>
- <option style="font-family:vivian" id="vivian" value="vivian">vivian</option>
- <option style="font-family:webdings" id="webdings" value="webdings">webdings</option>
- <option style="font-family:western" id="western" value="western">western</option>
- <option style="font-family:westminster" id="westminster" value="westminster">westminster</option>
- <option style="font-family:westwood LET" id="westwoodLET" value="westwood LET">westwood LET</option>
- <option style="font-family:wide latin" id="widelatin" value="wide latin">wide latin</option>
- </select>
- <br><br>Test Area (-- Write Your Example Text In The Box Right Below):</p>
- <textarea onkeyup="textbox(this)" rows = '1' cols = '142'>
- --
- </textarea>
- <div id="example">>>> Preview Example Text Here...</div><br><br>
- <script src="http://code.jquery.com/jquery-1.5.js"></script>
- <script>
- function textbox(val) {
- $('#example').text(val.value);
- };
- </script>
- <center id='example'>
- "The Quick Brown Fox Jumped Over The Lazy Brown Dog?!"<br><br>
- 1234567890<br>
- !?@#$%^&*()_+-={}[]:";'<>,.~<br>
- ABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
- abcdefghijklmnopqrstuvwxyz
- </center><br><br>
- </html>
- <font size=1pt face="arial" color=#FF2400>1p arial - </font>
- <font size=2pt face="arial" color=#FF2400>2p arial - </font>
- <font size=3pt face="arial" color=#FF2400>3p arial - </font>
- <font size=4pt face="arial" color=#FF2400>4p arial - </font>
- <font size=5pt face="arial" color=#FF2400>5p arial - </font>
- <font size=6pt face="arial" color=#FF2400>6p arial - </font>
- <font size=7pt face="arial" color=#FF2400>7p arial (maximum size) </font><br><br>
- <TABLE BORDER="0"><TR>
- <TD bgcolor="#0000FF" align="center"><font size=2 face="tahoma, arial" color="yellow"><B>Fonts</b></FONT></TD>
- <TD bgcolor="yellow" align="center"><font size=2 face="tahoma, arial" color="#0000FF"><B>ABC123</b></FONT></TD>
- </TR><TR>
- <TD VALIGN="top">
- <style>
- LI {
- font: 18px Helvetica, sans-serif;
- margin: 5px;
- height: 21px;
- }
- </style>
- <OL>
- <LI>verdana
- <LI>comic sans ms
- <LI>lucida console
- <LI>monospace
- <LI>georgia
- <LI>arial
- <LI>times new roman (default)
- <LI>tahoma
- <LI>trebuchet ms
- <LI>impact
- <LI>wingdings
- <LI>symbol
- </OL>
- </TD><TD VALIGN="top">
- <OL>
- <LI><FONT face="verdana">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="comic sans ms">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="Lucida Console">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="monospace">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="georgia">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="arial">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="times new roman">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="tahoma">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="trebuchet MS">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="impact">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="wingdings">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- <LI><FONT face="symbol">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</FONT>
- </OL>
- </TD>
- </TR></TABLE>
- </body>
- </html>
- <script type="text/javascript">
- function font() {
- var ff=document.getElementById('fontfamily');
- ff.onchange=function() {
- if (this.value!=null) {
- document.body.style.fontFamily=this.value;
- }
- }
- }
- window.onload=font;
- $(document).ready(function () {
- var content = $('#mytextarea').val();
- var display = $('#preview').val();
- $('#mytextarea').keyup(function () {
- display = content;
- });
- });
- </script>
Add Comment
Please, Sign In to add comment