{"id":13477556,"url":"https://github.com/kiliman/operator-mono-lig","last_synced_at":"2025-05-14T22:09:46.676Z","repository":{"id":39612300,"uuid":"100210619","full_name":"kiliman/operator-mono-lig","owner":"kiliman","description":"Add ligatures to Operator Mono similar to Fira Code","archived":false,"fork":false,"pushed_at":"2024-03-20T14:42:06.000Z","size":5462,"stargazers_count":3245,"open_issues_count":17,"forks_count":204,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-04-13T19:38:51.012Z","etag":null,"topics":["font","glyphs","ligature","ligatures","operator-mono"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiliman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-13T23:25:23.000Z","updated_at":"2025-04-11T21:18:20.000Z","dependencies_parsed_at":"2022-08-31T19:10:11.589Z","dependency_job_id":"d275dd2e-ed85-44cc-9a56-658db5031d2f","html_url":"https://github.com/kiliman/operator-mono-lig","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliman%2Foperator-mono-lig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliman%2Foperator-mono-lig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliman%2Foperator-mono-lig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliman%2Foperator-mono-lig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiliman","download_url":"https://codeload.github.com/kiliman/operator-mono-lig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235701,"owners_count":22036964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["font","glyphs","ligature","ligatures","operator-mono"],"created_at":"2024-07-31T16:01:44.428Z","updated_at":"2025-05-14T22:09:41.658Z","avatar_url":"https://github.com/kiliman.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Operator Mono Ligatures\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)\n\n\u003cimg src=\"./images/operator-mono-lig.png\" /\u003e\n\nThis project will generate new OpenType fonts for [Operator Mono](https://www.typography.com/fonts/operator/styles/) that includes ligatures similar to\nthose found in the popular [Fira Code](https://github.com/tonsky/FiraCode) font.\n\nThese ligatures were custom created using [Glyphs](https://glyphsapp.com/).\nThere are even italic versions of the ligatures.\n\n## 🎉 What's New in Version 2.5\n\n\u003cimg src=\"./images/new-ligatures-2.5.png\"/\u003e\n\n## 🎉 What's New in Version 2\n\n\u003cimg src=\"./images/new-ligatures.png\"/\u003e\n\nAll new redesigned ligatures with better hinting. Updated font generation to support advanced OpenType features\nlike those found in Fira Code. For example, the cursor now moves inside the ligature. It also handles repeating\ncharacters properly.\n\n\u003cimg src=\"./images/caret-position.gif\" /\u003e\n\n## 👀 \u003ca href=\"https://htmlpreview.github.io/?https://github.com/kiliman/operator-mono-lig/blob/master/images/preview/normal/index.html\"\u003eClick here to see preview images of all ligatures\u003c/a\u003e\n\nWith the awesome help from [Mark Skelton](https://github.com/mskelton), we now have the full set of ligatures for\nthe following fonts. Thanks Mark, and thanks to all of you who have been patiently waiting for these ligatures to be completed.\n\n- Operator Mono SSm Light/Light Italic\n- Operator Mono SSm Book/Book Italic\n- Operator Mono SSm Medium/Medium Italic\n- Operator Mono SSm Bold/Bold Italic\n- Operator Mono Light/Light Italic\n- Operator Mono Book/Book Italic\n\n## 🙏 Help Wanted\n\nAs noted above, v2 does not include all weights for Operator Mono. In order to update the other fonts, all the ligatures need to be redone. Unfortunately I just don't have the time to do that at the moment. If you have a Mac and are interested in helping, please let me know. I will even purchase a license to Gylphs Mini for you.\n\nYou can reach me at kiliman@gmail.com.\n\n## ☑️ Take the poll\n\nWhich 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.\n\n[![](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20SSm%20Book)](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20SSm%20Book/vote)\n[![](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20SSm%20Medium)](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20SSm%20Medium/vote)\n[![](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20SSm%20Light)](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20SSm%20Light/vote)\n[![](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20Book)](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20Book/vote)\n[![](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20Medium)](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20Medium/vote)\n[![](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20Light)](https://api.gh-polls.com/poll/01C6T4C3FBG21KVS7FAW7Z09B2/Operator%20Mono%20Light/vote)\n\n\u003e NOTE: Because _Operator Mono_ is not a free font, you must have the original font files. This utility\n\u003e will merge the ligature definitions into a copy of the original font. The new font family is named _Operator Mono Lig_ so you can install it side-by-side with the original font.\n\n## Prerequisites\n\n- The original _Operator Mono_ font... of course.\n- Python (v2.7+)\n  - **NOTE**: For Mac, the default system Python v2.7 doesn't work. Make sure you install Python 3.\n- Node.js\n- Install _fonttools_ from https://github.com/fonttools/fonttools\n  - Windows/Linux: `pip install fonttools`\n    - **NOTE**: For Windows you should use a console with administrative permissions if your Python sit under `C:\\PythonX`\n    - **NOTE**: For Linux in WSL/WSL2, ensure that _fonttools_ is added to PATH after install. Alternatively, consider installing via `sudo apt install fonttools`.\n  - Mac: `pip3 install fonttools` (from Python 3)\n\n## Installation\n\nOnce 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.\n\nNext, copy your _Operator Mono_ OpenType files into the `original` folder. **NOTE**: Filenames must not include spaces. It should look like:\n\n- OperatorMonoSSm-Book.otf\n- OperatorMonoSSm-BookItalic.otf\n- OperatorMono-Light.otf\n- OperatorMono-LightItalic.otf\n- etc.\n\nFinally, run the following commands to install npm dependencies and build the font files. The new font files will be placed in the `build` folder. You can now install these fonts on your system.\n\n```sh\nnpm install\n\n# Windows\nbuild\n\n# Linux/Mac\n./build.sh\n```\n\n### Docker\n\nIf you use Docker, you can also use the executable Docker image [here](https://github.com/drod3763/kiliman-operator-mono-lig-docker). It handles all the prerequisite installation for you, you just need to:\n\n1. Clone the repo [located here](https://github.com/drod3763/kiliman-operator-mono-lig-docker).\n1. Copy your _Operator Mono_ OpenType files into the `input` folder.\n1. From the command line run:\n   ```sh\n   docker-compose run --rm operator-mono-lig\n   ```\n\nThe image will build and execute the conversion. The new font files will be generated into the `build` folder.\n\n## Configure Your Code Editor\n\nYou can now select the newly generated font in your code editor. Make sure you enable font ligatures and set the desired font weight if using Windows. The code block below shows what this might look like if using VS Code.\n\n```json\n  \"editor.fontFamily\": \"OperatorMonoSSmLig-Book\",\n  \"editor.fontLigatures\": true,\n  // for Windows\n  \"editor.fontFamily\": \"Operator Mono SSm Lig\",\n  \"editor.fontLigatures\": true,\n  \"editor.fontWeight\": \"500\",   // adjust for desired weight\n```\n\n## 🔧 Customize the generated font\n\nBy default, all available ligatures will be added to the generated font. However, if you don't like a particular\nligature, or would prefer to use an alternate glyph, you can create a `profiles.ini` file in the `./original` folder\nto configure how the font should be built.\n\nYou can create one or more profiles. Each profile will have a set of directives. You can specify alternate glyphs for\na given ligature. You can also prevent a ligature from being added.\n\nEach profile will be listed with `[profile name]` (the first profile should be named default). The generated font will\ninclude the profile name. For example `[Go]` would generate the font: _Operator Mono Lig Go_. This way you can configure\na different set of ligatures for each language in your favorite code editor.\n\n```ini\n# name of profile (one or more sections, first should be name default)\n[default]\n# glyph=altglyph\ngreater_equal.liga=greater_equal.2.liga\n\n# do not include glyph (add ! prefix)\n!equal_equal.liga\n\n# another optional section (will create a font named Operator Mono Lig Go)\n[Go]\n... add custom directives for this font ...\n```\n\n## 😍 Thank You\n\nThanks to Hoefler\u0026Co for making such an amazing font. It makes writing code truly pleasurable.\n\nThanks also to all of you for your kinds words of encouragement and feedback. I really\nappreciate it.\n\n## ✨ Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/kiliman\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/47168?v=4?s=100\" width=\"100px;\" alt=\"Kiliman\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKiliman\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=kiliman\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=kiliman\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#design-kiliman\" title=\"Design\"\u003e🎨\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/mskelton\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/25914066?v=4?s=100\" width=\"100px;\" alt=\"Mark Skelton\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMark Skelton\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#design-mskelton\" title=\"Design\"\u003e🎨\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/drod3763\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/7785716?v=4?s=100\" width=\"100px;\" alt=\"Derick Rodriguez\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDerick Rodriguez\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=drod3763\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/amitkparekh\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/7276308?v=4?s=100\" width=\"100px;\" alt=\"Amit Parekh\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAmit Parekh\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=amitkparekh\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#design-amitkparekh\" title=\"Design\"\u003e🎨\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/CandySunPlus\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/502700?v=4?s=100\" width=\"100px;\" alt=\"NikSun\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNikSun\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#design-CandySunPlus\" title=\"Design\"\u003e🎨\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Jakob6174\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/40262817?v=4?s=100\" width=\"100px;\" alt=\"Jakob Pearson\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJakob Pearson\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=Jakob6174\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Kilua99\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/44760686?v=4?s=100\" width=\"100px;\" alt=\"kilua99\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ekilua99\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=Kilua99\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/GlorifiedBicycle\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/71753585?v=4?s=100\" width=\"100px;\" alt=\"Reland Boyle\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eReland Boyle\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=GlorifiedBicycle\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://killua.me/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/457822?v=4?s=100\" width=\"100px;\" alt=\"Luigi\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLuigi\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=killua99\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/tweks\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/564556?v=4?s=100\" width=\"100px;\" alt=\"Tomek Weksej\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTomek Weksej\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kiliman/operator-mono-lig/commits?author=tweks\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliman%2Foperator-mono-lig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiliman%2Foperator-mono-lig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliman%2Foperator-mono-lig/lists"}