New answers tagged

3

Let's say we've loaded a Bold font variant like so: @font-face { font-family: 'Raleway Bold'; font-style: normal; font-weight: 700; src: url(path/to/font/raleway-bold.woff2) format('woff2'); } I would argue in favour of using both font-family and font-weight in your style specification. For example: h1 { font-weight: 700; font-family: '...


0

While both ways will give you the correct output, there is a long withstanding industry standard of using a single font-family with different weight and styles. In fact, if you use Google fonts to load Raleway you would be using the single font family route. Let's outline several reasons why this is the better route. It reduces CSS complexity an, ...



Top 50 recent answers are included