Skip to content

Commit

Permalink
📝 Update to v2.2.2 fixes some ligatures not in correct weight
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliman committed Aug 5, 2019
1 parent 2282dd3 commit da7425f
Show file tree
Hide file tree
Showing 63 changed files with 2,208 additions and 2,153 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ those found in the popular [Fira Code](https://github.com/tonsky/FiraCode) font.
These ligatures were custom created using [Glyphs](https://glyphsapp.com/).
There are even italic versions of the ligatures.

## New Version 2.2.1
## New Version 2.2.2

All new redesigned ligatures with better hinting. Updated font generation to support advanced OpenType features
like those found in Fira Code. For example, the cursor now moves inside the ligature. It also handles repeating
Expand All @@ -29,12 +29,13 @@ the following fonts. Thanks Mark, and thanks to all of you who have been patient
- Operator Mono SSm Bold/Bold Italic
- Operator Mono Light/Light Italic

### 🐛 Fixed in Version 2.2.1
### 🐛 Fixed in Version 2.2.2

Fixed glyph widths Operator Mono Light and Light Italic. These fonts accidentally were sized
the same as the ScreenSmart versions and caused alignment issues.
the same as the ScreenSmart versions and caused alignment issues. Also fixed a few ligatures
that didn't have the correct weight.

### Customize the generated font
### 🔧 Customize the generated font

In addition to the new ligatures, this version now allows you to customize what ligatures are added to a font.
By default, all available ligatures will be added to the generated font. However, if you don't like a particular
Expand Down Expand Up @@ -67,7 +68,7 @@ greater_equal.liga=greater_equal.2.liga
In addition to the graphic above, the following new ligatures are available:
<img src="./images/new-ligatures.png"/>

### Help Wanted
### 🙏 Help Wanted

As noted above, v2.0 only includes ligatures for **Operator Mono SSm Book**. In order to
update the other fonts, all the ligatures need to be redone. Unfortunately I just don't
Expand All @@ -76,7 +77,7 @@ please let me know. I will even purchase a license to Gylphs Mini for you.

You can reach me at [email protected].

## Take the poll
## ☑️ Take the poll

Which font weight of Operator Mono do you use? Also note difference between Screen Smart (SSm) and regular version. This will help prioritize the order of development.

Expand All @@ -99,7 +100,7 @@ Which font weight of Operator Mono do you use? Also note difference between Scre
- for Mac users it's better to run `pip3 install fonttools` - [info](https://stackoverflow.com/a/33416270/3191011)
- Node.js

## How to Install
## 🛠 How to Install

1. Once all the prerequisites have been installed, clone this repo. Or download latest release from [Releases](https://github.com/kiliman/operator-mono-lig/releases) and unzip.

Expand Down Expand Up @@ -149,14 +150,14 @@ You can now select the newly generated font in your code editor. Make sure you e
"editor.fontWeight": "500", // adjust for desired weight
```

## Thank You
## 😍 Thank You

Thanks to Hoefler&Co for making such an amazing font. It makes writing code truly pleasurable.

Thanks also to all of you for your kinds words of encouragement and feedback. I really
appreciate it.

## Contributors ✨
## ✨ Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Expand Down
91 changes: 45 additions & 46 deletions ligature/OperatorMonoLig-Light/glyphs/ampersand_ampersand.liga.xml
Original file line number Diff line number Diff line change
@@ -1,57 +1,56 @@
<Glyph name="ampersand_ampersand.liga" lsb="-477" width="550">
<Glyph name="ampersand_ampersand.liga" lsb="-408" width="550">
<CharString>
-13 60 586 67 hstem
-477 70 10 69 291 70 10 69 vstem
359 178 rmoveto
38 67 35 90 26 106 -63 7 rcurveline
-18 -86 -27 -79 -29 -62 rrcurveto
{75868691} callsubr
-5 0 -4 1 -5 vhcurveto
-45 51 38 67 35 90 26 106 rlinecurve
-63 7 -18 -86 -27 -79 -29 -62 rlinecurve
{75868691} callsubr
-85 55 -69 100 70 72 40 89 60 vhcurveto
-39 33 71 -90 134 hhcurveto
70 72 40 89 60 hvcurveto
33 -39 37 -43 39 -49 56 47 rcurveline
-47 55 -42 49 -37 42 rrcurveto
-667 -131 rmoveto
{a5af4707} callgsubr
440 hmoveto
{a5af4707} callgsubr
-12 52 533 58 hstem
296 159 rmoveto
35 61 31 81 25 96 -55 7 rcurveline
{8f8784a0} callgsubr
rrcurveto
{db974013} callgsubr
-21 5 -21 10 -21 vhcurveto
-48 6 {8f8784a0} callgsubr
rlinecurve
{4eaf5c4e} callgsubr
38 -59 33 -31 33 -15 rrcurveto
-8 19 21 -5 25 hhcurveto
63 65 36 82 54 hvcurveto
31 -35 33 -40 36 -44 48 40 rcurveline
-42 50 -39 44 -34 38 rrcurveto
-219 163 rmoveto
-38 -24 -29 -25 -22 -27 17 43 15 48 14 51 10 -21 14 -21 19 -24 rrcurveto
-335 -282 rmoveto
{62d0dced} callgsubr
351 hmoveto
{62d0dced} callgsubr
-148 114 rmoveto
0 0 0 0 vhcurveto
endchar
</CharString>
<Subrs>
<CharString index="0" fingerprint="75868691">
-144 163 -65 69 64 vvcurveto
65 51 60 194 -9 vhcurveto
-6 67 rlineto
-235 5 -73 -101 -93 vvcurveto
-49 23 -44 46 -60 vhcurveto
-100 -63 -49 -73 -81 vvcurveto
return
<Subrs/>
<GlobalSubrs>
<CharString index="0" fingerprint="8f8784a0">
-17 -79 -24 -72 -27 -58 return
</CharString>
<CharString index="1" fingerprint="75868691">
-144 163 -65 69 64 vvcurveto
65 51 60 194 -9 vhcurveto
-6 67 rlineto
-235 5 -73 -101 -93 vvcurveto
-49 23 -44 46 -60 vhcurveto
-100 -63 -49 -73 -81 vvcurveto
<CharString index="1" fingerprint="db974013">
-132 149 -60 63 60 vvcurveto
59 47 55 177 -8 vhcurveto
-4 58 rlineto
-212 4 -66 -91 -83 vvcurveto
return
</CharString>
</Subrs>
<GlobalSubrs>
<CharString index="0" fingerprint="a5af4707">
-66 -33 46 63 56 35 59 73 51 hvcurveto
37 -44 48 -53 58 -68 rrcurveto
-74 -47 -54 -36 -51 hhcurveto
<CharString index="2" fingerprint="8f8784a0">
-17 -79 -24 -72 -27 -58 return
</CharString>
<CharString index="3" fingerprint="4eaf5c4e">
{db974013} callgsubr
-44 21 -41 42 -54 vhcurveto
-90 -57 -44 -66 -72 vvcurveto
-77 49 -62 89 63 65 36 82 54 vhcurveto
return
</CharString>
<CharString index="1" fingerprint="a5af4707">
-66 -33 46 63 56 35 59 73 51 hvcurveto
37 -44 48 -53 58 -68 rrcurveto
-74 -47 -54 -36 -51 hhcurveto
<CharString index="4" fingerprint="62d0dced">
-60 -31 42 58 50 32 55 68 47 hvcurveto
34 -41 43 -48 53 -61 rrcurveto
-69 -43 -49 -33 -47 hhcurveto
return
</CharString>
</GlobalSubrs>
Expand Down
10 changes: 5 additions & 5 deletions ligature/OperatorMonoLig-Light/glyphs/bar_bar.liga.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<Glyph name="bar_bar.liga" lsb="-226" width="550">
<CharString>
-226 56 329 56 vstem
-170 705 {a9d1a864} callgsubr
385 886 {a9d1a864} callgsubr
-170 705 {a9d1a864} callsubr
385 886 {a9d1a864} callsubr
endchar
</CharString>
<Subrs/>
<GlobalSubrs>
<Subrs>
<CharString index="0" fingerprint="a9d1a864">
rmoveto
-56 -5 rlineto
Expand All @@ -19,5 +18,6 @@
-881 56 vlineto
return
</CharString>
</GlobalSubrs>
</Subrs>
<GlobalSubrs/>
</Glyph>
22 changes: 10 additions & 12 deletions ligature/OperatorMonoLig-Light/glyphs/bar_greater.liga.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<Glyph name="bar_greater.liga" lsb="-233" width="550">
<Glyph name="bar_greater.liga" lsb="-251" width="550">
<CharString>
-201 985 hstem
-233 572 vstem
-167 784 rmoveto
-66 -6 rlineto
-979 66 vlineto
506 492 rlineto
62 vlineto
-67 -36 rmoveto
-439 -428 rlineto
809 vlineto
439 -371 rlineto
-251 56 468 57 vstem
330 317 rmoveto
-525 456 -56 -5 rlineto
-949 56 5 vlineto
525 439 rlineto
-57 23 rmoveto
-468 -391 rlineto
804 vlineto
468 -405 rlineto
endchar
</CharString>
<Subrs/>
Expand Down
62 changes: 39 additions & 23 deletions ligature/OperatorMonoLig-Light/glyphs/colon_equal.liga.xml
Original file line number Diff line number Diff line change
@@ -1,32 +1,48 @@
<Glyph name="colon_equal.liga" lsb="-370" width="550">
<Glyph name="colon_equal.liga" lsb="-289" width="550">
<CharString>
145 113 135 114 hstem
-370 736 vstem
-370 393 {47439142} callgsubr
60 rlineto
-529 -60 hlineto
-207 -275 {47439142} callgsubr
61 rlineto
-529 -61 hlineto
131 101 -76 52 147 101 -77 52 hstemhm
-288.5 96.5 hintmask 00000000
hintmask 01101000
-289 355 {f593abee} callsubr
hintmask 10011000
635 -77 rmoveto
{d805e4a1} callgsubr
-211 -248 {f593abee} callsubr
hintmask 01011000
635 -76 rmoveto
{d805e4a1} callgsubr
endchar
</CharString>
<Subrs/>
<GlobalSubrs>
<CharString index="0" fingerprint="47439142">
<Subrs>
<CharString index="0" fingerprint="f593abee">
rmoveto
111 hlineto
2 114 rlineto
-112 hlineto
734 -87 rmoveto
1 return
96 hlineto
2 101 rlineto
-97 hlineto
return
</CharString>
<CharString index="1" fingerprint="47439142">
<CharString index="1" fingerprint="f593abee">
rmoveto
111 hlineto
2 114 rlineto
-112 hlineto
734 -87 rmoveto
1 return
96 hlineto
2 101 rlineto
-97 hlineto
return
</CharString>
</Subrs>
<GlobalSubrs>
<CharString index="0" fingerprint="d805e4a1">
{c7138596} callgsubr
-426 -52 hlineto
return
</CharString>
<CharString index="1" fingerprint="c7138596">
1 52 rlineto
return
</CharString>
<CharString index="2" fingerprint="d805e4a1">
{c7138596} callgsubr
-426 -52 hlineto
return
</CharString>
</GlobalSubrs>
</Glyph>
40 changes: 15 additions & 25 deletions ligature/OperatorMonoLig-Light/glyphs/equal_equal.2.liga.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,29 @@
{a926ac67} callgsubr
hstem
-468 425 85 425 vstem
-43 379 {37df18c9} callsubr
-85 -223 {37df18c9} callsubr
-43 379 {a8999db7} callgsubr
-85 -223 {a8999db7} callgsubr
endchar
</CharString>
<Subrs>
<CharString index="0" fingerprint="37df18c9">
{e986858e} callgsubr
-426 -52 hlineto
935 hmoveto
{c7138596} callsubr
-426 -52 hlineto
return
<Subrs/>
<GlobalSubrs>
<CharString index="0" fingerprint="a926ac67">
156 52 171 52 return
</CharString>
<CharString index="1" fingerprint="c7138596">
1 52 rlineto
<CharString index="1" fingerprint="a8999db7">
rmoveto
{d805e4a1} callgsubr
935 hmoveto
{d805e4a1} callgsubr
return
</CharString>
<CharString index="2" fingerprint="37df18c9">
{e986858e} callgsubr
-426 -52 hlineto
935 hmoveto
{c7138596} callsubr
<CharString index="2" fingerprint="d805e4a1">
{c7138596} callgsubr
-426 -52 hlineto
return
</CharString>
</Subrs>
<GlobalSubrs>
<CharString index="0" fingerprint="a926ac67">
156 52 171 52 return
</CharString>
<CharString index="1" fingerprint="e986858e">
rmoveto
{c7138596} callsubr
<CharString index="3" fingerprint="c7138596">
1 52 rlineto
return
</CharString>
</GlobalSubrs>
Expand Down
19 changes: 12 additions & 7 deletions ligature/OperatorMonoLig-Light/glyphs/equal_equal.liga.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@
{a926ac67} callgsubr
hstem
-468 936 vstem
467 379 {e986858e} callgsubr
467 379 {28fd4823} callsubr
-936 -52 hlineto
935 -223 {e986858e} callgsubr
935 -223 {28fd4823} callsubr
-936 -52 hlineto
endchar
</CharString>
<Subrs>
<CharString index="0" fingerprint="c7138596">
1 52 rlineto
<CharString index="0" fingerprint="28fd4823">
rmoveto
{c7138596} callgsubr
return
</CharString>
<CharString index="1" fingerprint="28fd4823">
rmoveto
{c7138596} callgsubr
return
</CharString>
</Subrs>
<GlobalSubrs>
<CharString index="0" fingerprint="a926ac67">
156 52 171 52 return
</CharString>
<CharString index="1" fingerprint="e986858e">
rmoveto
{c7138596} callsubr
<CharString index="1" fingerprint="c7138596">
1 52 rlineto
return
</CharString>
</GlobalSubrs>
Expand Down
Loading

0 comments on commit da7425f

Please sign in to comment.