/// <summary> /// Releases the specified font. /// </summary> /// <param name="font">Font to release.</param> protected virtual void ReleaseFont(Font font) { if (font == null) { return; } if (m_Renderer == null) { return; } m_Renderer.FreeFont(font); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { m_Renderer.FreeFont(this); GC.SuppressFinalize(this); }