...

Source file src/golang.org/x/image/font/inconsolata/inconsolata.go

Documentation: golang.org/x/image/font/inconsolata

     1  // Copyright 2016 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:generate genbasicfont -size=16 -pkg=inconsolata -hinting=full -var=regular8x16 -fontfile=http://www.levien.com/type/myfonts/inconsolata/InconsolataGo-Regular.ttf
     6  //go:generate genbasicfont -size=16 -pkg=inconsolata -hinting=full -var=bold8x16 -fontfile=http://www.levien.com/type/myfonts/inconsolata/InconsolataGo-Bold.ttf
     7  
     8  // The genbasicfont program is github.com/golang/freetype/example/genbasicfont
     9  
    10  // Package inconsolata provides pre-rendered bitmap versions of the Inconsolata
    11  // font family.
    12  //
    13  // Inconsolata is copyright Raph Levien and Cyreal. This package is licensed
    14  // under Go's BSD-style license (https://golang.org/LICENSE) with their
    15  // permission.
    16  //
    17  // Inconsolata's home page is at
    18  // http://www.levien.com/type/myfonts/inconsolata.html
    19  package inconsolata // import "golang.org/x/image/font/inconsolata"
    20  
    21  import (
    22  	"golang.org/x/image/font/basicfont"
    23  )
    24  
    25  // Regular8x16 is a regular weight, 8x16 font face.
    26  var Regular8x16 *basicfont.Face = &regular8x16
    27  
    28  // Bold8x16 is a bold weight, 8x16 font face.
    29  var Bold8x16 *basicfont.Face = &bold8x16
    30  

View as plain text