Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/delphinus/homebrew-sfmono-square

SFMono Square - patched font: SFMono + Migu 1M + Nerd Fonts
https://github.com/delphinus/homebrew-sfmono-square

Last synced: 7 days ago
JSON representation

SFMono Square - patched font: SFMono + Migu 1M + Nerd Fonts

Awesome Lists containing this project

README

        

# SFMono Square - patched font: SFMono + Migu 1M + Nerd Fonts

スクリーンショット 0001-05-23 21 40 50

## What's this?

**SF Mono** is a font from Apple, that is clear, easy to read, and suitable for programming. **SFMono Square** is based on **SF Mono**, and added glyphs for Japanese & patched for [Nerd Fonts][].

_Now, SF Mono Square v3 has completely the same codepoints as Nerd Fonts v3's ones._

[Nerd Fonts]: https://github.com/ryanoasis/nerd-fonts

Thoughts and detail description here:

* [SF Mono を使って最高のプログラミング用フォントを作った話 - Qiita][qiita] (in Japanese)

[qiita]: https://qiita.com/delphinus/items/f472eb04ff91daf44274

### font source

* SF Mono: Apple
* Migu 1M: [Miguフォント : M+とIPAの合成フォント](https://itouhiro.github.io/mixfont-mplus-ipa/migu/)
* Nerd Fonts: [ryanoasis/nerd-fonts: Iconic font aggregator, collection, and patcher. 40+ patched fonts, over 3,600 glyph/icons, includes popular collections such as Font Awesome & fonts such as Hack](https://github.com/ryanoasis/nerd-fonts)

And, idea and some code is from [プログラミング用フォント Ricty](http://www.rs.tus.ac.jp/yyusa/ricty.html).

## How to use

Install with [Homebrew][].

[Homebrew]: https://brew.sh

```sh
brew tap delphinus/sfmono-square
brew install sfmono-square

open "$(brew --prefix sfmono-square)/share/fonts"
# open fonts with Finder
```

## Customize

### Change the ratio the size for zenkaku / hankaku

In default, this formula reduces the size of glyphs in Migu 1M (zenkaku font) and matches with SF Mono (hankaku font). The ratio is **82%**.

When you want to change this value, you can do this by `brew edit` and follow [comments][] in the formula.

[comments]: https://github.com/delphinus/homebrew-sfmono-square/blob/b99df9b00fa3c3c0637eba049f4619b363f69ed3/sfmono-square.rb#L43-L45

```sh
brew edit sfmono-square
```

See screenshots for examples [here][].

[here]: https://github.com/delphinus/homebrew-sfmono-square/issues/9#issuecomment-515827269

## Screen Shots

スクリーンショット 0003-04-21 9 20 16

スクリーンショット 0003-04-21 9 50 04

スクリーンショット 0001-05-23 21 47 37

スクリーンショット 0001-05-23 21 42 22

スクリーンショット 0001-05-23 21 43 33