Projet

Général

Profil

0001-static-provide-Raleway-font-24486.patch

Frédéric Péters, 12 juin 2018 17:46

Télécharger (296 ko)

Voir les différences:

Subject: [PATCH 1/2] static: provide Raleway font (#24486)

 README                                        |  10 ++++
 static/fondettes/_custom.scss                 |   4 +-
 .../fonts/Raleway/raleway-bold-webfont.woff   | Bin 0 -> 32620 bytes
 .../fonts/Raleway/raleway-bold-webfont.woff2  | Bin 0 -> 26156 bytes
 .../fonts/Raleway/raleway-medium-webfont.woff | Bin 0 -> 31432 bytes
 .../Raleway/raleway-medium-webfont.woff2      | Bin 0 -> 25256 bytes
 .../Raleway/raleway-regular-webfont.woff      | Bin 0 -> 31676 bytes
 .../Raleway/raleway-regular-webfont.woff2     | Bin 0 -> 25412 bytes
 .../Raleway/raleway-semibold-webfont.woff     | Bin 0 -> 31584 bytes
 .../Raleway/raleway-semibold-webfont.woff2    | Bin 0 -> 25376 bytes
 static/fonts/Raleway/stylesheet.css           |  48 ++++++++++++++++++
 static/includes/_font-raleway.scss            |  16 ++++++
 12 files changed, 76 insertions(+), 2 deletions(-)
 create mode 100644 static/fonts/Raleway/raleway-bold-webfont.woff
 create mode 100644 static/fonts/Raleway/raleway-bold-webfont.woff2
 create mode 100644 static/fonts/Raleway/raleway-medium-webfont.woff
 create mode 100644 static/fonts/Raleway/raleway-medium-webfont.woff2
 create mode 100644 static/fonts/Raleway/raleway-regular-webfont.woff
 create mode 100644 static/fonts/Raleway/raleway-regular-webfont.woff2
 create mode 100644 static/fonts/Raleway/raleway-semibold-webfont.woff
 create mode 100644 static/fonts/Raleway/raleway-semibold-webfont.woff2
 create mode 100644 static/fonts/Raleway/stylesheet.css
 create mode 100644 static/includes/_font-raleway.scss
README
61 61
  # Licensed under the SIL Open Font License v1.10
62 62
  # https://www.fontsquirrel.com/fonts/asap
63 63

  
64
* Raleway font
65
  # Copyright (c) 2010, Matt McInerney (matt@pixelspread.com),
66
  # Copyright (c) 2011, Pablo Impallari (www.impallari.com|impallari@gmail.com),
67
  # Copyright (c) 2011, Rodrigo Fuenzalida (www.rfuenzalida.com|hello@rfuenzalida.com),
68
  # with Reserved Font Name Raleway
69
  #
70
  # This Font Software is licensed under the SIL Open Font License, Version 1.1.
71
  #
72
  # https://www.fontsquirrel.com/license/raleway
73

  
64 74
~~~~
65 75

  
66 76
Some theme variant files have their own specific licenses; refer to
static/fondettes/_custom.scss
1
@import url(https://fonts.googleapis.com/css?family=Raleway:400,700);
1
@import '../includes/font-raleway';
2 2

  
3 3
body {
4 4
	background: transparent url(bg-header.jpeg) no-repeat scroll center top;
......
89 89
	color: white;
90 90

  
91 91
	h2 {
92
		font-family: raleway;
92
		font-family: Raleway;
93 93
		font-weight: bold;
94 94
		font-size: 1em;
95 95
		line-height: 120%;
static/fonts/Raleway/stylesheet.css
1
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on June 12, 2018 */
2

  
3

  
4

  
5
@font-face {
6
    font-family: 'ralewaysemibold';
7
    src: url('raleway-semibold-webfont.woff2') format('woff2'),
8
         url('raleway-semibold-webfont.woff') format('woff');
9
    font-weight: normal;
10
    font-style: normal;
11

  
12
}
13

  
14

  
15

  
16

  
17
@font-face {
18
    font-family: 'ralewaybold';
19
    src: url('raleway-bold-webfont.woff2') format('woff2'),
20
         url('raleway-bold-webfont.woff') format('woff');
21
    font-weight: normal;
22
    font-style: normal;
23

  
24
}
25

  
26

  
27

  
28

  
29
@font-face {
30
    font-family: 'ralewaymedium';
31
    src: url('raleway-medium-webfont.woff2') format('woff2'),
32
         url('raleway-medium-webfont.woff') format('woff');
33
    font-weight: normal;
34
    font-style: normal;
35

  
36
}
37

  
38

  
39

  
40

  
41
@font-face {
42
    font-family: 'ralewayregular';
43
    src: url('raleway-regular-webfont.woff2') format('woff2'),
44
         url('raleway-regular-webfont.woff') format('woff');
45
    font-weight: normal;
46
    font-style: normal;
47

  
48
}
static/includes/_font-raleway.scss
1
$raleway-font-path: '../fonts/Raleway' !default;
2

  
3
@mixin raleway-font($type, $weight) {
4
	@font-face {
5
		font-family: 'Raleway';
6
		src: url('#{$raleway-font-path}/raleway-#{$type}-webfont.woff2') format('woff2'),
7
		     url('#{$raleway-font-path}/raleway-#{$type}-webfont.woff') format('woff');
8
		font-weight: $weight;
9
		font-style: normal;
10
	}
11
}
12

  
13
@include raleway-font('regular', 400);
14
@include raleway-font('medium', 500);
15
@include raleway-font('semibold', 600);
16
@include raleway-font('bold', 700);
0
-