bfg: moved font class into own source files.

This class uses <regex>, which yields fairly large compilation times.