From cbe1ffc710fb25488f8cf505d62e677f776a3c34 Mon Sep 17 00:00:00 2001 From: Robin Cheptileh Date: Sun, 18 Feb 2018 14:52:07 +0300 Subject: Added font stylesheet files --- fonts/otf/README.MD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 fonts/otf/README.MD (limited to 'fonts/otf/README.MD') diff --git a/fonts/otf/README.MD b/fonts/otf/README.MD new file mode 100644 index 0000000..1de8753 --- /dev/null +++ b/fonts/otf/README.MD @@ -0,0 +1,35 @@ +# The Montserrat Font Project +To use this font as a webfont, ```Montserrat.css``` is included. + +## How to use +### 1. @import +You can import the file into your stylesheet as follows: +```css +@import url("static/fonts/Montserrat/fonts/otf/Montserrat.css"); +``` + +**NOTE:** The directory where the stylesheet is placed. + +Then we can use it to style elements: +```css +body { + font-family: 'Montserrat', sans-serif; + font-weight: 400; +} +``` + +### 2. \ing a stylesheet +Similarly, you could link to the same asset as you would any other CSS filter, in the \ of the HTML document rather than in the CSS: +```html + +``` + +**NOTE:** The directory where the stylesheet is placed. + +Then we can use it to style elements: +```css +body { + font-family: 'Montserrat', sans-serif; + font-weight: 400; +} +``` \ No newline at end of file -- cgit v1.2.3