<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>faux-styles on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/faux-styles/</link><description>Recent content in faux-styles on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Wed, 04 Feb 2015 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/faux-styles/index.xml" rel="self" type="application/rss+xml"/><item><title>Using @font-face and preventing faux-styles</title><link>https://hugo.curtiscode.dev/post/less/using-font-face-and-preventing-faux-styles/</link><pubDate>Wed, 04 Feb 2015 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/less/using-font-face-and-preventing-faux-styles/</guid><description>@font-face is used in CSS to define a custom font style for a web page.
Some custom fonts come with multiple type-faces for different weights and italic styles.
These are often defined with seperate font-family names for each type-face.
For example the &amp;ldquo;Alegreya&amp;rdquo; font could be defined as:
@font-face{ font-family:&amp;#39;alegreya&amp;#39;; src: url(&amp;#39;Fonts/Alegreya-Regular.otf&amp;#39;); font-weight: normal; font-style: normal; } @font-face{ font-family:&amp;#39;alegreya-bold&amp;#39;; src: url(&amp;#39;Fonts/Alegreya-Bold.otf&amp;#39;); font-weight: normal; font-style: normal; } @font-face{ font-family:&amp;#39;alegreya-italic&amp;#39;; src: url(&amp;#39;Fonts/Alegreya-Italic.</description></item></channel></rss>