Documentation
¶
Overview ¶
Package d2d replays gfx Pictures with Direct2D 1.1 and DirectWrite on Windows, with no window: the device is a D3D11 WARP device, so no GPU is needed and a service, CI or an SSH session in session 0 can render. It is empty on other systems.
Experimental, like gfx: the API may change without notice.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaceInfo ¶
type FaceInfo struct {
PostScript string
Families []string // typographic family first, then the legacy one
Weight int // 100..900
Italic bool
File string
}
FaceInfo is what a font file says about its first face: the names a Picture may use for it and the family, weight and slant DirectWrite needs to pick it.
func ReadFaceInfo ¶
ReadFaceInfo reads the name and OS/2 tables of an OpenType or TrueType file.