how to download google fonts in version bold
Tags: css,fonts,google-font-api
Problem :
Im using SourceSansPro-Bold. I have one file ttf downloaded, and I have other format declared as google links. But my question is if the these links are correct?
The problem is that Google links has word 'V4 declared, probably version 4, but I need fonts in version "bold".
How to check if there are the same fonts (both in bold version)?
Or how to modify google link to get bold font for sure?
Css Font definition:
@font-face {
font-family: 'source sans pro';
font-style: normal;
font-weight: bold;
src: font-url('SourceSansPro-Bold.ttf');
src: font-url('SourceSansPro-Bold.ttf') format('truetype'),
local('Source Sans Pro Bold'), local('SourceSansPro-Bold'),
url(http://themes.googleusercontent.com/static/fonts/sourcesanspro/v4/toadOcfmlt9b38dHJxOBGBlTL9oEQvYTI0YAW1-Ysv0.eot) format('embedded-opentype'),
url(http://themes.googleusercontent.com/static/fonts/sourcesanspro/v4/toadOcfmlt9b38dHJxOBGNbE_oMaV8t2eFeISPpzbdE.woff) format('woff');
}
Google font declaration with V4 string inside:
http://themes.googleusercontent.com/static/fonts/sourcesanspro/v4/toadOcfmlt9b38dHJxOBGBlTL9oEQvYTI0YAW1-Ysv0.eo
Solution :
You can select which weight of font you want here: https://www.google.com/fonts#UsePlace:use/Collection:Source+Sans+Pro.
If you want to download these files locally.
- Visit the
href
from the<link>
- Visit the
url:
from the@font-face
of the font you need. - This will download the font.
CSS Howto..
Just do this DEMO - 1 (border top or bottom) .menu { width:30px; height:20px; position:relative; display:inline-block; border-top:4px solid black; } .menu:after, .menu:before { content: ''; width: 100%; height:4px; background-color:#000; position:absolute;...
You'll need to add the css on the page (after the initial css loads)- For example, add this to the page with your fancybox, or after your fancybox css stylesheet...
Based on what Thomas suggested, this is a complete solution 1- myCellList.css .cellListWidget { } .cellListEvenItem { display: inline-block; cursor: pointer; zoom: 1; } .cellListOddItem { display: inline-block; cursor: pointer;...
There are many ways to make such a layout, you can try something like this : .container{ position : relative; border: blue solid 1px; display: inline-block; width: 450px; } .container...
You would have to overlay it with a gradient or image. See this fiddle for a working example: http://jsfiddle.net/V4YaQ/119/ Basically I wrapped the image and added an overlay: <div class="thumbnail">...
You could use some column alignment: on the first columns the labels, on the second column the input fields. Eventually you can use 4 column: labels on 1st and 3rd,...
Try this: var elem = $(location.hash).css('background-color', '#FC9A24'); setTimeout(function() { elem.css({"background-color":"transparent", "transition":"background-color 0.5s ease"}); }, 2000); ...
Use setTimeout, it calls a function or executes a code snippet after a specified delay. $(document).ready(function() { $('#table_Id tr td').mouseenter(function() { var self = this; //Cache this in a variable...
This is easy, you would have seperate Projects within your website Solution. Just create a solution and (within Solution Explorer) right click and create a new project. Take a look...
String concatenation: webview.executeJavaScript("$('body').css('left', " + leftPos + " )"); // ----------------------------------------------^^^^^^^^^^^^^^^ That'll work if leftPos just has a number in it (-300, which will be -300 pixels). If leftPos is...
Ok, so thanks to porneL’s answer, I found the solution to my problem. In my SSCCE I used paragraphs as child elements (and porneL gave the correct answer as far...
I have just worked it out. Sorry to bother you guys. .img { position: relative; } .img .btn-panel { position: absolute; margin-top:-50px; //did the job when combined with top 50%...
It would be useful to know what kind of shape that is. I am cutting an ellipse in half for my solution. This was kind of fun. Edit: Changed my...
There's no cross-browser CSS only solution to normalizing form elements. For a non-JS solution that works in modern browsers, check out this CSS ninja article. Otherwise, your best option is...
This will do the trick, modify the width/height/marginTop and marginBottom increments/decrements as needed: (Working Example) $(document).ready(function () { $('#myImg').load(function(){ setInterval(function(){ $('#myImg').animate({'marginTop':"-=35px"},"slow"); $('#myImg').animate({'marginTop':"+=35px"},"slow");...
Use relative positioning, top, and possibly left. position: relative; top: -25px; left: -15px; Relative Positioning was defined in CSS 2.0. Which means no CSS3 required and it will work on...
Chances are you're not setting the style on the correct element. It's probably being set somewhere up the line in a parent node. elHighlight.style.backgroundColor = ""; elHighlight.style.backgroundImage = ""; You...
I understand why browsers return this value: it's because they actually put the scrollbar between the right padding and the right border, and then they shrink the width by that...
You should use CSS pseudo element ::after and assign content i.e. {content: 'twitter'}
There is a package for this called npm-css In webpack you can require css like require('bootstrap.css'), this is why installing css via npm quite useful if you don't have it,...
If you need to reorder your content using only CSS, your best bet is to use flexbox's order property. I've created a demo here on CodePen. http://codepen.io/BenCodeZen/pen/QNmVLQ The key is...
I find a good example from railscast. http://railscasts.com/episodes/88-dynamic-select-menus...
I would probably restructure as so: <div id="wellbox" class="well pull-right"> <div><h3>Album Sales & Net worth</h3></div> <hr> <div class'albumContainer'> <a href="#"><p id="album0">Album1:</p></a> <div><p id="albumdata0"...
try to use $(slector).each(function(i,e){ $(e).dostuff() <-- here is the current element and this will aplly to each element $(e).css('width'); <-- will return the width of the current elem }); ...
You can easily track the latest versions of IE (mostly IE 10 and IE 11) using 1. CSS media query hack: /* #ie10,11 will only be red in MSIE 10,...
Try add similar to position: absolute; left: 50%; margin-left: -5000px; ...
Make you divs position: relative So you can set the position of the image inside of it: http://jsfiddle.net/5aFzh/8/ EDIT Why are you using: margin: -16px 0 0 0; That's not...
Add a span around each of the titles and assign a different class to each one. Then you can change the colors via CSS. <h1> <span class="gray1">Bully-Free Zone</span><br/> <span class="gray2">Bully-Free...
Ok, your code is amost right, but the problem is the JQuery event binder sintax. Read the JQuery .on() Docs The syntax for the method is: .on( events [, selector...
At first it seemed from the responses that using the show/hide functions would not be possible if I wanted a value of display other than block. However, I then noticed...