Closed dmowcomber closed 5 years ago
I would like be able to create a new font struct with the default map and data but change the size. I can't do that without redefining eightMap and eightData.
eightMap
eightData
It would be nice to have another construct function like:
func New(w, h uint8) *PixFont { return &PixFont{w, h, eightMap, eightData, w} }
Alternatively this could be done with a new SetSize function:
func (p *PixFont) SetSize(w, h uint8) { p.charWidth = w p.charHeight = h p.varCharWidth = w }
nevermind I just realized the map and data are dependent on the size.
I would like be able to create a new font struct with the default map and data but change the size. I can't do that without redefining
eightMap
andeightData
.It would be nice to have another construct function like:
Alternatively this could be done with a new SetSize function: