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 +44 -9
- package/css/woff2/JuliaMono-Regular.woff2 +0 -0
- package/css/woff2/cmunbbx.woff2 +0 -0
- package/css/woff2/cmunbi.woff2 +0 -0
- package/css/woff2/cmunbmo.woff2 +0 -0
- package/css/woff2/cmunbmr.woff2 +0 -0
- package/css/woff2/cmunbx.woff2 +0 -0
- package/css/woff2/cmunbxo.woff2 +0 -0
- package/css/woff2/cmunit.woff2 +0 -0
- package/css/woff2/cmunobi.woff2 +0 -0
- package/css/woff2/cmunobx.woff2 +0 -0
- package/css/woff2/cmunorm.woff2 +0 -0
- package/css/woff2/cmunoti.woff2 +0 -0
- package/css/woff2/cmunrm.woff2 +0 -0
- package/css/woff2/cmunsi.woff2 +0 -0
- package/css/woff2/cmunso.woff2 +0 -0
- package/css/woff2/cmunss.woff2 +0 -0
- package/css/woff2/cmunsx.woff2 +0 -0
- package/css/woff2/cmuntb.woff2 +0 -0
- package/css/woff2/cmunti.woff2 +0 -0
- package/css/woff2/cmuntt.woff2 +0 -0
- package/css/woff2/cmuntx.woff2 +0 -0
- package/example.js +392 -2
- package/index.html +21 -0
- package/lib/example/view/div/computerModern.js +349 -0
- package/lib/example/view.js +4 -2
- package/lib/example.js +3 -1
- package/lib/index.js +5 -1
- package/lib/style/computerModern.js +18 -0
- package/package.json +1 -1
- package/src/example/view/div/computerModern.js +194 -0
- package/src/example/view.js +3 -1
- package/src/example.js +3 -0
- package/src/index.js +2 -0
- package/src/style/computerModern.js +149 -0
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
|
|
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
|
-
###
|
|
37
|
+
### JuliaMono
|
|
38
38
|
|
|
39
|
-
|
|
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
|
|
59
|
+
brew install woff2
|
|
43
60
|
```
|
|
44
61
|
|
|
45
|
-
|
|
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
|
-
|
|
68
|
+
This utility can be installed and run on other platforms with a little effort.
|
|
52
69
|
|
|
53
|
-
|
|
70
|
+
### Computer Modern
|
|
54
71
|
|
|
55
|
-
|
|
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
|