Using Google fonts in Blogger.com
Using Google Fonts in Blogger.com
Get some fonts from fonts.google.com. Copy the code for the embedded font from the “standard” tab. Next, login to blogger.com, go to Theme > Customize > Edit HTML, then paste the embedded font somewhere inside the head tag
<head>
<link href='https://fonts.googleapis.com/css?family=Arimo:400,700|Ubuntu+Mono' rel='stylesheet'/>
</head>
Now, you can use these fonts in your custom stylesheet
Styling the <pre>
and <code>
Login to blogger.com, go Theme > Customize > Advanced, scroll down until you get to Add CSS. A sample style is as follows
pre, code {
font: 1em 'Ubuntu Mono';
}
pre {
color: #000;
letter-spacing: -.3px;
line-height: 1.2em;
margin-top: 0px;
margin-bottom: 10px;
border: 1px solid #dedede;
background: #fdfdf7;
padding: 5px;
overflow: auto;
word-wrap: normal;
white-space: pre;
}
You have to get Ubuntu mono from Google Fonts before you can use it.
If you find any corrections in the page or article, the best place to log that is in the site's GitHub repo workingdev.net/issues. To start a discussion with me, the best place to do that is via twitter @lovescaffeine