mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-20 23:47:16 -05:00
font format: NewFontGlyph method
This commit is contained in:
parent
e9c9786af1
commit
aeef2d5c4b
17
d2common/d2fileformats/d2font/defaults.go
Normal file
17
d2common/d2fileformats/d2font/defaults.go
Normal file
@ -0,0 +1,17 @@
|
||||
package d2font
|
||||
|
||||
// NewFontGlyph creates a new font glyph
|
||||
func NewFontGlyph(frame, width, height int) *FontGlyph {
|
||||
// nolint:gomnd // thes bytes are constant
|
||||
// comes from https://d2mods.info/forum/viewtopic.php?t=42044
|
||||
result := &FontGlyph{
|
||||
unknown1: []byte{0, 0},
|
||||
unknown2: []byte{1, 0, 0},
|
||||
unknown3: []byte{0, 0, 0, 0, 0},
|
||||
frame: frame,
|
||||
width: width,
|
||||
height: height,
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user