• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

font-files/H03-May-2022-470,582255,204

tools/H03-May-2022-265236

README.mdH A D29-Mar-20179.3 KiB273179

README.md

1# Datalegreya
2### the typeface that melts text and data visualisation
3
4![Specimen](http://figs-lab.com/content/datalegreya/readme-specimen.png)
5
6>Datalegreya is a typeface which can interweave data curves with text. It is designed by [Figs](http://figs-lab.com), on the basis of open source font [Alegreya Sans SC Thin](https://fonts.google.com/specimen/Alegreya+Sans+SC) by type designer [Juan Pablo del Peral](https://twitter.com/juandelperal).
7
8>Datalegreya can be used in all contexts where small space is available to synthetically display graphical data: connected objects, embedded displays, annual reports, weather report, stock prices, etc.
9
10>It doesn’t need any specialized software: users just have to install it in the operating system and launch any software able to display OpenType fonts, such as Microsoft Word, Apple TextEdit, Adobe Suite, etc.
11
12>Standards compliance makes it equally available on the web or software embedded.
13
14>Most connected objects feature a small sized screen, and all of them are about data. By its hybrid design aimed to displaying text and data in compact spaces, Datalegreya brings a realistic and elegant solution to this ever growing market’s specific issues.
15
16
17## Summary
18- [**Demo**](http://figs-lab.com/datalegreya)
19- [**How to install**](#how-to-install)
20- [**How to use it**](#how-to-use-it)
21	- [Simplest form](#simplest-form)
22	- [Simple graph](#simple-graph)
23	- [Neutral characters](#neutral-characters)
24	- [Start value](#start-value)
25	- [Min / Max indicators](#min--max-indicators)
26	- [Neutral spaces](#neutral-spaces)
27	- [Non neutral spaces](#non-neutral-spaces)
28	- [X axis legend](#x-axis-legend)
29	- [Y axis legend](#y-axis-legend)
30- [**Webfont**](#webfont)
31	- [`@font-face`](#font-face)
32	- [`font-feature-settings` + `font-variant-ligatures`](#font-feature-settings--font-variant-ligatures)
33	- [`text-rendering` + `font-smoothing`](#text-rendering--font-smoothing)
34	- [Browser support](#browser-support)
35- [**License**](#license)
36- [**Feedback or questions?**](#feedback-or-questions)
37
38------
39
40## Demo
41Check out our [**demo**](http://figs-lab.com/datalegreya) on our website!
42
43The conversion tool inside the [`/tools`](https://github.com/figs-lab/datalegreya/tree/master/tools) folder of this repository is also available [**here**](http://www.figs-lab.com/content/datalegreya/convert.html)
44
45## How to install
46
471. [**Download ZIP**](https://github.com/figs-lab/datalegreya/archive/master.zip)
482. Unzip `datalegreya-master.zip`
493. Go to `/font-files` folder and double-click on OTF files in each subfolder to install it on your computer.
504. Open you favorite design software
515. Activate the following OpenType features:
52	- Ligatures
53	- Discretionary Ligatures
54	- Contextual Alternates
556. Enjoy!
56
57
58## How to use it
59
60To use it, one just have to insert after each letter a special character followed by a number. The font automatically replaces this simple code by the characters that will display the curve corresponding to the selected values.
61Under the hood, Datalegreya makes use of OpenType advanced features: multiple substitutions grant the possibility to replace several glyphs by one unique character.
62
63
64### Simplest form
65
66Datalegreya can be used like a standard font.
67Its design is nearly the same than Alegreya Sans SC Thin.
68
69<pre><code>bingo</code></pre>
70
71![Datalegreya – Simplest form](http://www.figs-lab.com/datalegreya/readme-12.png)
72
73
74### Simple graph
75
76Use the following encoding to display a graph inside a word:
77
78`character`  +  `|` (pipe character)  +  `value`
79
80
81> *Remember:*
82>
83> - *only use lower case characters*
84> - *only use integer values between 0 and 3*
85
86<pre><code>b|1i|3n|2g|2o|1</code></pre>
87
88![Datalegreya – Simple graph](http://www.figs-lab.com/datalegreya/readme-13.png)
89
90
91### Neutral characters
92
93To improve legibility of sentences, some characters won’t display the graph:
94
95`« » ! ? / ( ),; : *_`
96
97<pre><code>b|1i|3n|2g|2o|1!|3</code></pre>
98
99![Datalegreya – Neutral characters](http://www.figs-lab.com/datalegreya/readme-14.png)
100
101
102### Start value
103
104By default, the start value of the graph is 0, but user can start with another value by inserting the `§` (section) character, followed by a integer between 0 and 3.
105
106<pre><code>§1b|1i|3n|2g|2o|1</code></pre>
107
108![Datalegreya](http://www.figs-lab.com/datalegreya/readme-15.png)
109
110
111### Min / Max indicators
112
113The graph can be documented with indicators pointing on the minimum and / or maximum values.
114
115Simply insert after the selected value one of the following code, enclosed into brackets:
116
117`[-]` --> abbreviated minimum indicator
118
119`[--]` --> minimum indicator
120
121`[+]` --> abbreviated maximum indicator
122
123`[++]` --> maximum indicator
124
125<pre><code>b|1i|3[+]n|2g|2o|1</code></pre>
126
127![Datalegreya – Min / Max indicators](http://www.figs-lab.com/datalegreya/readme-16.png)
128
129
130### Neutral spaces
131
132Spaces can be inserted in a graphed sentence.
133
134To achieve precise display of the character following the space, a `\` (antislash) character must be inserted right after each space.
135
136> *Remember:*
137>
138> - *if you put more than 5 consecutive spaces or neutral characters, the following character won’t remember the value of the previous character.*
139
140<pre><code>b|1i|3n|2g|2o|1 \h|2o|2p|3</code></pre>
141
142![Datalegreya – Neutral spaces](http://www.figs-lab.com/datalegreya/readme-17.png)
143
144
145### Non neutral spaces
146
147But spaces can also be part of the graph.
148
149Use them just as normal characters:
150
151`space` + `|` (pipe) + `value`
152
153<pre><code>b|1i|3n|2g|2o|1 |2h|2o|2p|3</code></pre>
154
155![Datalegreya – Non neutral spaces](http://www.figs-lab.com/datalegreya/readme-18.png)
156
157
158### X axis legend
159
160It is possible to add information about the meaning of the values on the X-axis of the graph.
161
162Put 5 characters (no more, no less) inside `{ }` (accolades).
163
164Placing this code on the beginning and / or at the end of the string determine the position of the legend.
165
166> *Remember:*
167>
168> - *5 characters are needed inside the accolades. You can eventually use spaces to complete.*
169> - *spaces are allowed, as well as lower-case letters, digits, `-` (minus), `/` (slash) and `°` (degree) characters.*
170> - *accented characters are not supported.*
171
172<pre><code>{24/04}b|1i|3n|2g|2o|1{31/08}</code></pre>
173
174![Datalegreya – X-axis legend](http://www.figs-lab.com/datalegreya/readme-19.png)
175
176
177### Y axis legend
178
179User can also add legend about the Y-axis of the graph. Here is the code to achieve that:
180
181Between `[ ]` (brackets), put 5 characters (the top value legend) followed by a separator `[` (left bracket) or `]` (right bracket), then again 5 characters (the bottom value legend).
182
183> *Remember:*
184>
185> - *available characters are lower-case letters, digits, `-` (minus), `/` (slash) and `°` (degree) characters.*
186> - *accented characters are not supported.*
187> - *each side of the central bracket must contain 5 characters, no more, no less.*
188
189<pre><code>b|1i|3n|2g|2o|1[50   \[0    \]</code></pre>
190
191![Datalegreya – Y-axis legend](http://www.figs-lab.com/datalegreya/readme-20.png)
192
193
194## Webfont
195
196### @font-face
197To use it on the web, simply load the OTF file in your CSS using the `@font-face` rule:
198
199```css
200@font-face {
201	font-family: 'Datalegreya-Thin';
202	src: url('[path/to/your/fonts/folder]/Datalegreya-Thin.otf');
203	font-weight: normal;
204	font-style: normal;
205}
206@font-face {
207	font-family: 'Datalegreya-Gradient';
208	src: url('[path/to/your/fonts/folder]/Datalegreya-Gradient.otf');
209	font-weight: normal;
210	font-style: normal;
211}
212@font-face {
213	font-family: 'Datalegreya-Dot';
214	src: url('[path/to/your/fonts/folder]/Datalegreya-Dot.otf');
215	font-weight: normal;
216	font-style: normal;
217}
218```
219
220### `font-feature-settings` + `font-variant-ligatures`
221To display the font properly, you must enable `kern` (kerning), `liga` (ligatures) and `calt` (contextual alternates) features by adding the following code to your CSS file:
222
223```css
224body {
225	-webkit-font-feature-settings: "kern" on, "liga" on, "calt" on;
226	-moz-font-feature-settings: "kern" on, "liga" on, "calt" on;
227	-webkit-font-feature-settings: "kern" on, "liga" on, "calt" on;
228	-ms-font-feature-settings: "kern" on, "liga" on, "calt" on;
229	font-feature-settings: "kern" on, "liga" on, "calt" on;
230	font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
231}
232```
233
234### `text-rendering` + `font-smoothing`
235To optimize font rendering, you can also use `text-rendering` and `font-smoothing` properties as following:
236
237```css
238body {
239	text-rendering: optimizeLegibility;
240	-webkit-font-smoothing: antialiased;
241	-moz-osx-font-smoothing: grayscale;
242}
243```
244
245### Browser support
246Browser | CSS [OTF](http://caniuse.com/#feat=ttf) + [font-feature-settings](http://caniuse.com/#search=feature-settings) support
247---------------------------| ------------------
248IE 9                       | ✗ No
249IE 10+                     | ~ Partial
250Edge 12+                   | ✓ Yes
251Firefox 34+                | ✓ Yes
252Chrome 48+                 | ✓ Yes
253Opera 35+                  | ✓ Yes
254Safari 9.1+                | ✓ Yes
255iOS Safari 4.3+            | ✓ Yes
256Opera Mini                 | ✗ No
257Opera Mobile 37+           | ✓ Yes
258Android Browser 52+        | ✓ Yes
259Blackberry Browser 10+     | ✓ Yes
260Chrome for Android 53+     | ✓ Yes
261Firefox for Android 49+    | ✓ Yes
262IE Mobile                  | ✗ No
263
264
265
266## License
267This font is licensed under the [SIL Open Font License (OFL), Version 1.1](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
268
269
270## Feedback or questions?
271Feel free to contact us at <contact@figs-lab.com>
272HIGHLIGHTS BY 0
273