Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Golang: How to install official Go fonts for Golang developement

Tags:

go

fonts

go-font

Go recently announced Go font most suitable for go development.

https://blog.golang.org/go-fonts blog post has some details about it.

However it is not very clear to me how to install them in my mac to use them in Go development. Can anyone help me out here please.

like image 497
user3094829 Avatar asked Nov 17 '16 20:11

user3094829


1 Answers

  1. Download official fonts https://go.googlesource.com/image/+archive/master/font/gofont/ttfs.tar.gz

  2. Extract font files

tar -xvzf image-master-font-gofont-ttfs.tar.gz

  1. Click on ttf file to install respective font. In Mac, Font Book will open by default. Ubuntu has font application too. Click on install. After installing all the go font variants, Font Book will look like following.

Go Fonts

  1. Go to your favorite Go editor and assign Go font for go files.

    In Sublime Text, Changing the font can be done via adding these lines to the right-hand pane of Preferences ▸ Settings:

    "font_face": "Go Mono",

    "font_size": 10

Bonus Tip: Use Go Mono font. Go code looks awesome in it.

like image 111
Mayank Patel Avatar answered Sep 23 '22 05:09

Mayank Patel