func (f FontID) Height() int16 {
	return fonts[f].height
}
//////////////////////////////////////////////////////////////////////////////
Height returns the height of the font, i.e. the height of the images used to
store the glyphs.
package pixel
import (
	"errors"
	"image"
	_ "image/png"  
	"os"
	"path/filepath"
	"github.com/cozely/cozely/color"
	"github.com/cozely/cozely/internal"
)
type FontID uint8
const (
	maxFontID = 0xFF
	noFont    = FontID(maxFontID)
)
const Monozela10 = FontID(0)
var fontPaths = []string{"builtin monozela 10"}
var fonts = []font{{}}
type font struct {
	height    int16
	baseline  int16
	basecolor color.Index
	first     uint16  
}
func Font(path string) FontID {
	if internal.Running {
		setErr(errors.New("pixel font declaration: declarations must happen before starting the framework"))
		return noFont
	}
	if len(fonts) >= maxFontID {
		setErr(errors.New("pixel font declaration: too many fonts"))
		return noFont
	}
	fonts = append(fonts, font{})
	fontPaths = append(fontPaths, path)
	return FontID(len(fonts) - 1)
}
func (f FontID) glyph(r rune) uint16 {
	switch {
	case r < ' ':
		r = 0x7F - ' '
	case r <= 0x7F:
		r = r - ' '
	default:
		r = 0x7F - ' '
	}
	return fonts[f].first + uint16(r)
}