1 | # @sutton-signwriting/font-ttf
|
2 | [](https://gitter.im/sutton-signwriting/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
3 | [](https://www.npmjs.com/package/@sutton-signwriting/font-ttf)
|
4 | [](https://npm-stat.com/charts.html?package=@sutton-signwriting/font-ttf&from=2019-12-09)
|
5 |
|
6 | 
|
7 |
|
8 | @sutton-signwriting/font-ttf is a javascript package for the browser that generates SVG and PNG images for individual symbols and complete signs using TrueType Fonts. The package covers the entire set of the International SignWritnig Alphabet 2010 (ISWA 2010).
|
9 |
|
10 | This package supports both Formal SignWriting in ASCII (FSW) and SignWriting in Unicode (SWU) character sets, along with the style string. See [draft-slevinski-formal-signwriting](https://tools.ietf.org/id/draft-slevinski-formal-signwriting-09.html) for detailed specification.
|
11 |
|
12 | > Author: https://SteveSlevinski.me
|
13 | > Channel: https://www.youtube.com/channel/UCXu4AXlG0rXFtk_5SzumDow
|
14 | > Sponsor: https://www.patreon.com/signwriting
|
15 | > Donate: https://donate.sutton-signwriting.io
|
16 |
|
17 | ## Useful links
|
18 |
|
19 | - Source: https://github.com/sutton-signwriting/font-ttf
|
20 | - Distribution: https://unpkg.com/browse/@sutton-signwriting/font-ttf/
|
21 | - Documentation: https://www.sutton-signwriting.io/font-ttf/
|
22 | - Issue Tracker: https://github.com/sutton-signwriting/font-ttf/issues
|
23 | - Online Discussion: https://gitter.im/sutton-signwriting/community
|
24 |
|
25 | ## Installation
|
26 |
|
27 | ## Install TrueType Font
|
28 |
|
29 | The TrueType Fonts can be installed on Windows, Mac, and Linux. For iOS, [two mobile configurations](https://github.com/Slevinski/signwriting_2010_fonts) are available. Installation is not possible on Android.
|
30 |
|
31 | ### Install with NPM
|
32 | ```
|
33 | npm install @sutton-signwriting/font-ttf
|
34 | ```
|
35 |
|
36 | ### Install with GIT
|
37 | ```
|
38 | # download package
|
39 | git clone https://github.com/sutton-signwriting/font-ttf.git
|
40 |
|
41 | # install dependencies
|
42 | cd font-ttf
|
43 | npm install
|
44 | sudo apt install node-typescript
|
45 |
|
46 | # create project documentation
|
47 | npm run docs
|
48 |
|
49 | # create project files
|
50 | npm run build
|
51 | ```
|
52 |
|
53 | ## Usage
|
54 |
|
55 | ### Using as a module
|
56 | ```
|
57 | // import entire library
|
58 | import * as ttf from '@sutton-signwriting/font-ttf'
|
59 |
|
60 | // import individual module
|
61 | import {font} from '@sutton-signwriting/font-ttf'
|
62 | ```
|
63 |
|
64 | ### Using in the Browser
|
65 |
|
66 | #### Local files
|
67 | ```
|
68 | // import entire library
|
69 | // available as ssw.ttf
|
70 | <script src="index.js"></script>
|
71 |
|
72 | // import individual module
|
73 | // available as ssw.ttf.font
|
74 | <script src="font/font.js"></script>
|
75 | ```
|
76 |
|
77 | #### Unpkg
|
78 | ```
|
79 | // import entire library
|
80 | // available as ssw.ttf
|
81 | <script src="https://unpkg.com/@sutton-signwriting/font-ttf@1.5.2"></script>
|
82 |
|
83 | // import individual module
|
84 | // available as ssw.ttf.font
|
85 | <script src="https://unpkg.com/@sutton-signwriting/font-ttf@1.5.2/font/font.min.js"></script>
|
86 | ```
|
87 |
|
88 | ## Configure font for VS Code
|
89 |
|
90 | File >> Preferences >> Settings
|
91 |
|
92 | Search for "font family". Append SuttonSignWritingOneD to the list of fonts. Restart VS Code.
|
93 |
|
94 | ## License
|
95 | MIT
|
96 |
|
97 | ## SignWriting General Interest
|
98 | - SignWriting Website: https://signwriting.org/
|
99 | - Sutton SignWriting Resources: https://www.sutton-signwriting.io/
|
100 | - Wikipedia page: https://en.wikipedia.org/wiki/SignWriting
|
101 | - Email Discussion: https://www.signwriting.org/forums/swlist/
|
102 | - Facebook Group: https://www.facebook.com/groups/SuttonSignWriting/
|