0001-misc-distribute-D-Din-font-23256.patch
README | ||
---|---|---|
43 | 43 |
# Licensed under the Ubuntu Font License, Version 1.0. |
44 | 44 |
# https://www.fontsquirrel.com/license/ubuntu |
45 | 45 | |
46 |
* D-Din font |
|
47 |
# https://www.fontsquirrel.com/fonts/d-din |
|
48 |
# |
|
49 |
# Licensed under the SIL Open Font License v1.10 |
|
50 |
# https://www.fontsquirrel.com/license/d-din |
|
51 | ||
46 | 52 |
~~~~ |
47 | 53 | |
48 | 54 |
Some CSS variant files have their own specific licenses. |
static/includes/_font-din.scss | ||
---|---|---|
1 |
$din-font-path: '../fonts/din' !default; |
|
2 | ||
3 |
@mixin din-font($type, $weight, $style: normal) { |
|
4 |
@font-face { |
|
5 |
font-family: 'Din'; |
|
6 |
src: url('#{$din-font-path}/DIN#{$type}.otf') format('opentype'); |
|
7 |
font-weight: $weight; |
|
8 |
font-style: $style; |
|
9 |
} |
|
10 |
} |
|
11 | ||
12 |
@mixin din-font-pair($type, $weight) { |
|
13 |
@include din-font($type, $weight); |
|
14 |
@include din-font(Italic, $weight, italic); |
|
15 |
} |
|
16 | ||
17 |
@include din-font-pair('', 300); // light |
|
18 |
@include din-font-pair('', 400); // regular |
|
19 |
@include din-font-pair('', 500); // medium |
|
20 |
@include din-font-pair('Bold', 700); // bold |
|
0 |
- |