summaryrefslogtreecommitdiff
path: root/fonts/ttf/README.MD
diff options
context:
space:
mode:
authorJuan del Peral <juandelperal@gmail.com>2018-03-16 17:27:27 +0300
committerGitHub <noreply@github.com>2018-03-16 17:27:27 +0300
commit21047be7ebcae5e71328358fcf20566cb85383ec (patch)
tree81dac8430890992d34b8c9fe5f87705627ddb516 /fonts/ttf/README.MD
parent9b32bcf78a370495f3d0dd8e99b945fc8cad399d (diff)
parentcbe1ffc710fb25488f8cf505d62e677f776a3c34 (diff)
downloadMontserrat-21047be7ebcae5e71328358fcf20566cb85383ec.tar.xz
Merge pull request #66 from RobinCheptileh/master
Added font stylesheet files
Diffstat (limited to 'fonts/ttf/README.MD')
-rw-r--r--fonts/ttf/README.MD35
1 files changed, 35 insertions, 0 deletions
diff --git a/fonts/ttf/README.MD b/fonts/ttf/README.MD
new file mode 100644
index 0000000..a3da10f
--- /dev/null
+++ b/fonts/ttf/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/ttf/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. \<link>ing a stylesheet
+Similarly, you could link to the same asset as you would any other CSS filter, in the \<head> of the HTML document rather than in the CSS:
+```html
+<link rel="stylesheet" type="text/css" href="static/fonts/Montserrat/fonts/ttf/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;
+}
+``` \ No newline at end of file