occam-styles 4.1.110 → 4.1.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
  ## Introduction
14
14
 
15
- This package contains colour definitions together with user interface and syntax schemes. It also contains various images, in either native or JSX form. A distribution of [FiraCode](https://github.com/tonsky/FiraCode) is also included.
15
+ This package contains colour definitions together with user interface and syntax schemes; various images, in either native or JSX form; and the some of the [JuliaMono](https://juliamono.netlify.app/) typeface in Woff2 format.
16
16
 
17
- There is a small example application to view the images in JSX form.
17
+ There is a small example application to view the images in JSX form and so on.
18
18
 
19
19
  ## Installation
20
20
 
@@ -32,6 +32,45 @@ You can also clone the repository with [Git](https://git-scm.com/)...
32
32
 
33
33
  You can also run a development server, see the section on building later on.
34
34
 
35
+ ## Changes to the JuliaMono typeface
36
+
37
+ For those that are interested, here are the steps.
38
+
39
+ ### Stripping ligatures and contextual alternate characters
40
+
41
+ Assuming that you have relatively recent versions of Python and VirtualEnv installed, firstly create and activate a virtual environment...
42
+
43
+ ```
44
+ virtualenv venv
45
+ source venv/bin/activate
46
+ ```
47
+
48
+ ...then install Python's `foottools` package...
49
+
50
+ ```
51
+ pip install fonttools
52
+ ```
53
+
54
+ ...and then, lastly, assuming that you have created the requisite `source` and `output` directories, run the following or similar:
55
+
56
+ ```
57
+ pyftsubset source/JuliaMono-Bold.ttf --output-file=output/JuliaMono-Bold.ttf --layout-features-=calt,liga
58
+ ```
59
+
60
+ ### Compressing the TTF files to Woff2 format
61
+
62
+ Homebrew has the necessary utilities:
63
+
64
+ ```
65
+ brew install woof2
66
+ ```
67
+
68
+ Compression is then straightforward, for example:
69
+
70
+ ```
71
+ woff2_compress JuliaMono-Regular.ttf
72
+ ```
73
+
35
74
  ## Building
36
75
 
37
76
  Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
@@ -53,6 +92,10 @@ The example will then be available at http://localhost:8888 and will reload auto
53
92
 
54
93
  * The logo was converted to SVG format with Peter Selinger's [Potrace](http://potrace.sourceforge.net/).
55
94
 
95
+ * Occam's pretty printer uses the [JuliaMono](https://juliamono.netlify.app/) typeface distributed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ofl).
96
+
97
+ * [Fredrik Ekre](https://fredrikekre.se/) provided the script to strip out ligatures and contextual alternate characters from JuliaMono.
98
+
56
99
  ## Contact
57
100
 
58
101
  * james.smith@openmathematics.org
Binary file