Debian Codegraph @

exp/font/font.go

raw symbols SCIP
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
7 package fontscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/font`/
8
9 // Default returns the default system font.
10 // The font is encoded as a TTF.
11 func Defaultscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/font`/Default().() []byte {
12 b, err := buildDefaultscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/font`/buildDefault().()
13 if err != nil {
14 panic(err)
15 }
16 return b
17 }
18
19 // Monospace returns the default system fixed-pitch font.
20 // The font is encoded as a TTF.
21 func Monospacescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/font`/Monospace().() []byte {
22 b, err := buildMonospacescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/font`/buildMonospace().()
23 if err != nil {
24 panic(err)
25 }
26 return b
27 }