Welcome to Source Code Pro.
Source Code Pro is a set of OpenType fonts that have been designed to work well in user interface (UI) environments. In addition to a functional OpenType font, this open source project provides all of the source files that were used to build this OpenType font by using the AFDKO makeotf tool.
Examples
Letterforms
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
0123456789~`!#$%^&*()-_=+{}[]|/\:;"'<>,.?
Javascript Example
(function( $ ){
$.fn.maxHeight = function() {
var max = 0;
this.each(function() {
max = Math.max( max, $(this).height() );
});
return max;
};
})( jQuery );
Ruby Example
def multiply(a,b)
product = a * b
return product
end
And the web font syntax ...
<script src="http://use.edgefonts.net/source-code-pro.js"></script>
<style type="text/css">
code {
width: 100%;
color: #222;
background-color: #fff;
font-family: source-code-pro, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
font-size: 14px;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
}
</style>
Download the Font
https://github.com/adobe/Source-Code-Pro
Fork the Source on Github
https://github.com/adobe/Source-Code-Pro