2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/exp/font/font.go
Nigel Tao 981e383923 font: move to exp/font.
Change-Id: I62d5bcd829cb35e13843586b25829938778c79f5
Reviewed-on: https://go-review.googlesource.com/11133
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-06-16 21:35:30 +00:00

28 lines
561 B
Go

// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux darwin
package font
// Default returns the default system font.
// The font is encoded as a TTF.
func Default() []byte {
b, err := buildDefault()
if err != nil {
panic(err)
}
return b
}
// Monospace returns the default system fixed-pitch font.
// The font is encoded as a TTF.
func Monospace() []byte {
b, err := buildMonospace()
if err != nil {
panic(err)
}
return b
}