Skip to content

delphinus/homebrew-sfmono-square

Repository files navigation

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.

Thoughts and detail description here:

font source

And, idea and some code is from プログラミング用フォント Ricty.

How to use

Install with Homebrew.

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.

brew edit sfmono-square

See screenshots for examples here.

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