func NewStyle(name string, ft *truetype.Font) (Style, error) {
	var sty Style
	err := sty.init(name, ft)
	if err != nil {
		return sty, err
	}

	return sty, nil
}
// NewStyle creates a new style with the given truetype font.
NewStyle creates a new style with the given truetype font.
// NewStyle creates a new style with the given truetype font .
func NewStyle(name string, ft *truetype.Font) (Style, error) {
	var sty Style
	err := sty.init(name, ft)
	if err != nil {
		return sty, err
	}
	return sty, nil
}
func NewStyle ( name string , ft * truetype . Font ) ( Style , error ) { var sty Style err := sty . init ( name , ft ) if err != nil { return sty , err } return sty , nil }
NewStyle creates a new style with the given truetype font.
NewStyle creates a new style with the given truetype font .