mirror of
https://github.com/sayyadirfanali/Myna.git
synced 2026-03-21 16:49:23 +01:00
add v2.0 Beta release variants
This commit is contained in:
65
README.md
65
README.md
@@ -1,17 +1,19 @@
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="images/hero_dark.png">
|
||||
<source media="(prefers-color-scheme: light)" srcset="images/hero_light.png">
|
||||
<img alt="Perl" src="https://example.com/hero_light.png">
|
||||
<source media="(prefers-color-scheme: dark)" srcset="images/banner_dark.png">
|
||||
<source media="(prefers-color-scheme: light)" srcset="images/banner_light.png">
|
||||
<img alt="Myna" src="images/banner_light.png">
|
||||
</picture>
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Do you ever feel like your font treats symbols as second-class glyphs? Are you frustrated that `->` looks nothing like an arrow, and `$`, `@`, `%` seem ever mismatched?
|
||||
|
||||
Want to experience the beauty of ligatures without losing the simplicity of ASCII?
|
||||
Want to experience the beauty of ligatures without losing the simplicity of ASCII and getting tangled in the web of ligature-compatible terminal emulators?
|
||||
|
||||
**Myna** (*Gracula religiosa* 🐦⬛) is a monospace font which aims to bring harmony to your editor by treating symbols as first-class glyphs alongside alphanumeric characters.
|
||||
**Myna** ((_Gracula religiosa_)[https://en.wikipedia.org/wiki/Common\_hill\_myna]) is a monospace font which aims to bring harmony to your editor by treating symbols as first-class glyphs alongside alphanumeric characters.
|
||||
|
||||
NB: Please don't mind the colorscheme in the banner above. I just picked it because it highlighted the most colors in Ray.so. Since the banner contains multiple languages, no single colorscheme could properly highlight them in one image.
|
||||
|
||||
## Why Myna?
|
||||
Myna was born of a need to scratch a persistent typographical itch. While I've tried many otherwise well-crafted monospace fonts, I always found myself wanting to tweak a glyph here or adjust a shape there. After developing Myna and using it almost exclusively in my professional and personal work, I'm sharing it as a small contribution to the wonderful community of monospace typography enthusiasts.
|
||||
@@ -21,54 +23,23 @@ Here are a few of its attractive features that might make it your next favourite
|
||||
- **Near-Perfect Alignment**: multi-character symbols like `->`, `>>=`, `=~`, `::` align seamlessly
|
||||
- **Balanced Weight**: symbols have just the right visual weight against your code
|
||||
- **Minimalist Forms**: geometric shapes for quotes and commas
|
||||
- **Language-Aware Design**: clean sigils for Perl + elegant operators for Haskell + clear symbols for Rust (and even APL)
|
||||
- **Clear Distinction**: no more confusing `1 l I |` or `0 O o`
|
||||
- **Language-Aware Design**: clean sigils for Perl + elegant operators for Haskell + clear symbols for C
|
||||
|
||||
NB: Myna is designed to be a simple font. The current release is a single weight without ligatures, though future updates may expand its features if demand arises. It does work out nicely with synthesised bold generated by fontconfig and pango on Linux.
|
||||
|
||||
## Showcase
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="images/Perl_dark.png">
|
||||
<source media="(prefers-color-scheme: light)" srcset="images/Perl_light.png">
|
||||
<img alt="Perl" src="https://example.com/Perl_light.png">
|
||||
</picture>
|
||||
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="images/C_dark.png">
|
||||
<source media="(prefers-color-scheme: light)" srcset="images/C_light.png">
|
||||
<img alt="C" src="https://example.com/C_light.png">
|
||||
</picture>
|
||||
|
||||
Here is a comparison between some popular monospace fonts with Myna (at the bottom in different color). The list of the fonts used could be found in the script [mkcomp](scripts/mkcomp). Myna tries to emulate the smooth look of ligatures but also retains the simplicity of ASCII.
|
||||
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="images/comp_dark.png">
|
||||
<source media="(prefers-color-scheme: light)" srcset="images/comp_light.png">
|
||||
<img alt="Perl" src="https://example.com/comp_light.png">
|
||||
<img alt="Myna" src="images/comp_light.png">
|
||||
</picture>
|
||||
|
||||
Please click on the images below to view it in full in a new tab.
|
||||
|
||||
| Language | Light | Dark |
|
||||
|----------|-------|------|
|
||||
| **Perl** | <img src="images/Perl_light.png" width="500"> | <img src="images/Perl_dark.png" width="500"> |
|
||||
| **Haskell** | <img src="images/Haskell_light.png" width="500"> | <img src="images/Haskell_dark.png" width="500"> |
|
||||
| **C** | <img src="images/C_light.png" width="500"> | <img src="images/C_dark.png" width="500"> |
|
||||
| **Bash** | <img src="images/Bash_light.png" width="500"> | <img src="images/Bash_dark.png" width="500"> |
|
||||
| **Clojure** | <img src="images/Clojure_light.png" width="500"> | <img src="images/Clojure_dark.png" width="500"> |
|
||||
| **Erlang** | <img src="images/Erlang_light.png" width="500"> | <img src="images/Erlang_dark.png" width="500"> |
|
||||
| **OCaml** | <img src="images/OCaml_light.png" width="500"> | <img src="images/OCaml_dark.png" width="500"> |
|
||||
| **Rust** | <img src="images/Rust_light.png" width="500"> | <img src="images/Rust_dark.png" width="500"> |
|
||||
| **LaTeX** | <img src="images/LaTeX_light.png" width="500"> | <img src="images/LaTeX_dark.png" width="500"> |
|
||||
| **HTML** | <img src="images/HTML_light.png" width="500"> | <img src="images/HTML_dark.png" width="500"> |
|
||||
| **SQL** | <img src="images/SQL_light.png" width="500"> | <img src="images/SQL_dark.png" width="500"> |
|
||||
|
||||
## Installation
|
||||
Myna features Regular, Medium, Bold weight with faux Italic variants for all of them. In order to download them, please download the released zip files or clone the repo and then copy the relevant fonts from the folder `fonts/` into the font directory in your OS.
|
||||
|
||||
### Linux
|
||||
```bash
|
||||
git clone https://github.com/sayyadirfanali/Myna.git
|
||||
cd Myna
|
||||
cp Myna.otf ~/.local/share/fonts/
|
||||
cd ./Myna/fonts
|
||||
cp *.otf ~/.local/share/fonts/ # do NOT copy all files (read note above)
|
||||
fc-cache -v
|
||||
```
|
||||
|
||||
@@ -76,13 +47,19 @@ fc-cache -v
|
||||
```bash
|
||||
git clone https://github.com/sayyadirfanali/Myna.git
|
||||
cd Myna
|
||||
cp Myna.otf ~/Library/Fonts/
|
||||
cp Myna.otf ~/Library/Fonts/ # do NOT copy all files (read note above)
|
||||
```
|
||||
|
||||
### Windows
|
||||
1. Download the release
|
||||
2. Right-click `Myna.otf` and select "Install for all users"
|
||||
|
||||
NB: I've added a one-liner script `mknerdfont` to attach NerdFont glyphs into any variant. I've also released the Regular variant with NerdFont. You can use to script to run on any variant/weight to get a NerdFont-compatible version. You'd need `[fontpatcher](https://github.com/ryanoasis/nerd-fonts?tab=readme-ov-file#font-patcher)` installed for `mknerdfont` to work.
|
||||
|
||||
NB: I've also added a script `changeheight.py` to increase/decrease vertical spacing (in response to #9). You can use it if you want more vertical compactness in your terminal.
|
||||
|
||||
NB: The latest release (v2.0.0) features contextual variants for a few glyph pairs (eg, `|>`, `:=`) in response to #1 and #6. You'd need a terminal which can work with font features to be able to display them.
|
||||
|
||||
## License
|
||||
SIL Open Font License, Version 1.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user