protected override void UnloadSynchronized() { base.UnloadSynchronized(); if (_font != null) { _font.Dispose(); _font = null; } }
protected override void LoadSynchronized() { base.LoadSynchronized(); var gdiFont = new SysFont( "Microsoft Sans Serif", 10f /*8.25f*/, FontStyle.Bold, GraphicsUnit.Pixel); //_font = new D3dFont(Allocator.Device, gdiFont); _font = D3DXHelper.CreateFont(Allocator.Device, gdiFont); }