public void Dispose() { if (_fontSources != null) { foreach (var font in _fontSources) { font.Dispose(); } _fontSources.Clear(); } Atlases?.Clear(); _currentAtlas = null; _fonts.Clear(); }
public void Reset(int width, int height) { Atlases.Clear(); _glyphs.Clear(); if (width == _size.X && height == _size.Y) { return; } _size = new Point(width, height); _itw = 1.0f / _size.X; _ith = 1.0f / _size.Y; }