Skip to content

AngelCode BMF parsing and serialization in Go

License

Notifications You must be signed in to change notification settings

Qendolin/go-bmf

Repository files navigation

AngelCode BMF parsing in Go

Go Report Card

Supports parsing and serializing text, XML and binary formats in version 3.

API

PkgGoDev

bmf.Parse(src io.Reader) (*bmf.Font, error)
Parses AngelCode BMF and automatically chooses the correct format

bmf.ParseText(src io.Reader) (*bmf.Font, error)
Parses AngelCode BMF in text format

bmf.ParseXML(src io.Reader) (*bmf.Font, error)
Parses AngelCode BMF in XML format

bmf.ParseBinary(src io.Reader) (*bmf.Font, error)
Parses AngelCode BMF in binary format

bmf.SerializeBinary(fnt *bmf.Font, dst io.Writer) error
Serializes AngelCode BMF in binary format

bmf.SerializeText(fnt *bmf.Font, dst io.Writer) error
Serializes AngelCode BMF in text format

Issues

If you find any problems please report them. :)