File: font-face.md

package info (click to toggle)
node-stylus 0.48.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,196 kB
  • ctags: 766
  • sloc: makefile: 38
file content (30 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
layout: default
permalink: docs/font-face.html
---

# @font-face

 The `@font-face` at-rule expects as you would expect. Simply add a block of properties after it, like so:
 
 
     @font-face
       font-family Geo
       font-style normal
       src url(fonts/geo_sans_light/GensansLight.ttf)

     .ingeo
       font-family Geo

Yielding:


      @font-face {
        font-family: Geo;
        font-style: normal;
        src: url("fonts/geo_sans_light/GensansLight.ttf");
      }
      .ingeo {
        font-family: Geo;
      }