Skip to content

Commit 5b412e9

Browse files
committed
Changed Font Faces
1 parent efa0fef commit 5b412e9

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CodePrinter
1+
Codeprinter
22
============
3-
CodePrinter's goal is pretty self-explanatory: to make it easier to print out code on paper. Many IDE's either don't allow you to print or have some weird quirks like adding unneccessary headers and footers, not allowing you to change your font size, or not providing syntax highlighting on your printout.
3+
Codeprinter's goal is pretty self-explanatory: to make it easier to print out code on paper. Many IDE's either don't allow you to print or have some weird quirks like adding unneccessary headers and footers, not allowing you to change your font size, or not providing syntax highlighting on your printout.
44

5-
CodePrinter makes it easy. Simply copy your code into the text box, select your desired font, font size, and syntax highlighting theme and then hit print.
5+
Codeprinter makes it easy. Simply copy your code into the text box, select your desired font, font size, and syntax highlighting theme and then hit print.
66

77
Screenshots
88
============

assets/css/bootstrap.css

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/codeprinter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Global variables
88
var textSpace = document.getElementById('typeSpace');
99
var printSpace = document.getElementById('printSpace');
10-
var fonts = ["Andale Mono", "Courier", "Droid Sans Mono", "Ubuntu Mono"];
10+
var fonts = ["AnonymousPro", "Courier", "CutiveMono", "DroidSansMono"];
1111
var fontSizes = ["8px", "9px", "10px", "11px", "12px", "13px", "14px","15px",
1212
"16px"];
1313
var themes = ["None", "GitHub", "VS", "XCode"];
@@ -58,7 +58,7 @@ function changeFont(font)
5858
document.getElementById(fonts[i]).className="";
5959
}
6060
// Highlight the desired item
61-
document.getElementById(font).className="selected";
61+
document.getElementById(font.replace(/ /g, "")).className="selected";
6262
}
6363

6464
/**

assets/js/codeprinter.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
<title>codeprinter</title>
1818

19+
<!-- Google Fonts -->
20+
<link href='http://fonts.googleapis.com/css?family=Cutive+Mono|Droid+Sans+Mono|Anonymous+Pro' rel='stylesheet' type='text/css'>
21+
1922
<!-- Bootstrap core CSS -->
2023
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
2124

22-
<!-- Google Fonts -->
23-
<link href='https://fonts.googleapis.com/css?family=Ubuntu+Mono|Droid+Sans+Mono' rel='stylesheet' type='text/css'>
24-
2525
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
2626
<!--[if lt IE 9]>
2727
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
@@ -57,11 +57,11 @@
5757
<li class="dropdown">
5858
<a href="font" title="Choose a font!" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-font" style="color: #777777;"></span>&nbsp;<span class="caret" style="color: #777777;"></span></a>
5959
<ul class="dropdown-menu" role="menu">
60-
<li id="Andale Mono"><a href="javascript:undefined;" onClick="changeFont('Andale Mono');">Andale Mono</a></li>
60+
<li id="AnonymousPro"><a href="javascript:undefined;" onClick="changeFont('Anonymous Pro');">Anonymous Pro</a></li>
6161
<!-- Default Font -->
6262
<li id="Courier" class="selected"><a href="javascript:undefined;" onClick="changeFont('Courier');">Courier</a></li>
63-
<li id="Droid Sans Mono"><a href="javascript:undefined;" onClick="changeFont('Droid Sans Mono');">Droid Sans Mono</a></li>
64-
<li id="Ubuntu Mono"><a href="javascript:undefined;" onClick="changeFont('Ubuntu Mono');">Ubuntu Mono</a></li>
63+
<li id="CutiveMono"><a href="javascript:undefined;" onClick="changeFont('Cutive Mono');">Cutive Mono</a></li>
64+
<li id="DroidSansMono"><a href="javascript:undefined;" onClick="changeFont('Droid Sans Mono');">Droid Sans Mono</a></li>
6565
</ul>
6666
</li>
6767
<!-- Font sizes -->

0 commit comments

Comments
 (0)