github.com/SahandAslani/gomobile@v0.0.0-20210909130135-2cb2d44c09b2/exp/font/font.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build linux || darwin 6 // +build linux darwin 7 8 package font 9 10 // Default returns the default system font. 11 // The font is encoded as a TTF. 12 func Default() []byte { 13 b, err := buildDefault() 14 if err != nil { 15 panic(err) 16 } 17 return b 18 } 19 20 // Monospace returns the default system fixed-pitch font. 21 // The font is encoded as a TTF. 22 func Monospace() []byte { 23 b, err := buildMonospace() 24 if err != nil { 25 panic(err) 26 } 27 return b 28 }