Documentation ¶
Index ¶
- Variables
- func PtToF(pt Pt) float64
- type Dot
- type Face
- type Key
- type Manager
- func (m *Manager) DPI() int
- func (m *Manager) DotToPt(dot Dot) Pt
- func (m *Manager) Err() error
- func (m *Manager) Face(name string, size float64) (font.Face, error)
- func (m *Manager) Path(name string) (string, error)
- func (m *Manager) PtToDot(pt Pt) Dot
- func (m *Manager) RegisterTTF(name string, path string) *Manager
- func (m *Manager) SubPixels() (x, y int)
- type Pt
- type Src
Constants ¶
This section is empty.
Variables ¶
View Source
var PtI = fixed.I
Functions ¶
Types ¶
type Dot ¶
type Dot float64
Dot is the measurement used by layla and is defined as 1/8 mm or 1/203 inch. We use the 200 dpi dot as default, because it easier to work with than mm or 300 dpi dots. During layout we round to half dots so we do not lose information relevant for 300 dpi renders. Otherwise we try to round positions down and dimensions up, as not to sqeeze and wrap text.
type Manager ¶
type Manager struct { Compat bool // contains filtered or unexported fields }
func NewManager ¶
Click to show internal directories.
Click to hide internal directories.