Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmap ¶
type Bitmap struct {
// contains filtered or unexported fields
}
A Bitmap is a representation of a font. In practice, fonts are PNG images which are a set of rendered characters, or glyphs. This also means that fonts are essentially bitmapped, and they can only scale in accordance to the aspect ratio of the display.
type Name ¶
type Name int
A Name is simply a const that represents the font. Exactly where and how fonts are stored in the system is an abstraction that is not exported from the font package.
const ( // A2System is the "system font" for the Apple II. Although it was // posible to have a narrow-width font, it turns out that the source // font has exactly the same dimensions in both cases; the only // difference is that twice as many pixels are rendered within the // same physical space. A2System Name = iota // A2Inverted is essentially the same as the system font, except // that all of the pixels are inverted white-to-black. The rendered // effect is that each glyph would be shown as a silhouette on a // white background. A2Inverted )
Click to show internal directories.
Click to hide internal directories.