occam-styles 4.1.313 → 4.1.317

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
@@ -14,9 +14,9 @@
14
14
 
15
15
  ## Introduction
16
16
 
17
- 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.
17
+ This package contains colour definitions together with user interface and syntax schemes; various images, in either native or JSX form; and some of the [JuliaMono](https://juliamono.netlify.app/) and [Computer Modern](https://en.wikipedia.org/wiki/Computer_Modern) typefaces in Woff2 format.
18
18
 
19
- There is a small example application to view the images in JSX form and so on.
19
+ There is a small example application to view some of the images in JSX form and so on.
20
20
 
21
21
  ## Installation
22
22
 
@@ -34,25 +34,56 @@ You can also clone the repository with [Git](https://git-scm.com/)...
34
34
 
35
35
  You can also run a development server, see the section on building later on.
36
36
 
37
- ### Compressing the JuliaMono TTF files to Woff2 format
37
+ ### JuliaMono
38
38
 
39
- Homebrew has the necessary utilities:
39
+ The `JuliaMono.zip` file can be downloaded from the releases page of the JulaMono repository on [GitHub](https://github.com/cormullion/juliamono/releases).
40
+
41
+ Once downloaded, unzip the file:
42
+
43
+ ```
44
+ unzip JuliaMono.zip
45
+ ```
46
+
47
+ All the files bar the `JuliaMono-Regular.ttf` file can be deleted, as can the `webfonts` directory.
48
+
49
+ Ligatures and their like can be removed with the using `pyftsubset`:
50
+
51
+ ```
52
+ pip install fonttools
53
+ pyftsubset JuliaMono-Regular.ttf '*' --output-file=JuliaMono-Regular.ttf --layout-features-='*'
54
+ ```
55
+
56
+ If you have a Mac with Homebrew installed then you can install the utility to convert the TTF file to WOFF2 thus:
40
57
 
41
58
  ```
42
- brew install woof2
59
+ brew install woff2
43
60
  ```
44
61
 
45
- Compression is then straightforward, for example:
62
+ To convert the TTF to a WOFF2 file:
46
63
 
47
64
  ```
48
65
  woff2_compress JuliaMono-Regular.ttf
49
66
  ```
50
67
 
51
- For instructions on how to remove all ligatures, etc, see the following:
68
+ This utility can be installed and run on other platforms with a little effort.
52
69
 
53
- * [How to turn off ligatures and contextual alternate characters in CSS](https://github.com/cormullion/juliamono/issues/159#issuecomment-1453900328)
70
+ ### Computer Modern
54
71
 
55
- Only the regular font face is being used currently.
72
+ The TTF fonts are available from [SourceForge](https://sourceforge.net/projects/cm-unicode/files/cm-unicode/0.7.0/cm-unicode-0.7.0-ttf.tar.xz/download) of all places:
73
+
74
+ They can be unpacked as follows:
75
+
76
+ ```
77
+ tar xzvf cm_unicode-0.7.0-pfb.tar.gz
78
+ ```
79
+
80
+ To compress them all, use `woff2_compress` utility again.
81
+
82
+ ```
83
+ for filename in *; do woff2_compress "${filename}"; done
84
+ ```
85
+
86
+ Bear in mind that not all of the thirty one variants are used. Currently this package supports twenty. See the example for details.
56
87
 
57
88
  ## Example
58
89
 
@@ -101,6 +132,10 @@ Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have
101
132
 
102
133
  * [Fredrik Ekre](https://fredrikekre.se/) provided the script to strip out ligatures and contextual alternate characters from JuliaMono.
103
134
 
135
+ * The Computer Modern CSS was adapted from Jonathan Häberle's [computer-modern-web-font](https://github.com/dreampulse/computer-modern-web-font) repository.
136
+
137
+ * The original Unicode Computer Modern fonts were created by [Andrey V. Panov](https://scholar.google.com/citations?user=JyNVNNEAAAAJ&hl=en).
138
+
104
139
  ## Contact
105
140
 
106
141
  * james.smith@djalbat.com
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file