using System.IO; using Microsoft.Xna.Framework.Content.Pipeline; using MonoGame.Extended.Content.BitmapFonts; namespace MonoGame.Extended.Content.Pipeline.BitmapFonts { [ContentImporter(".fnt", DefaultProcessor = "BitmapFontProcessor", DisplayName = "BMFont Importer - MonoGame.Extended")] public class BitmapFontImporter : ContentImporter> { public override ContentImporterResult Import(string filename, ContentImporterContext context) { using FileStream stream = File.OpenRead(filename); var bmfFile = BitmapFontFileReader.Read(stream); return new ContentImporterResult(filename, bmfFile); } } }