Cast gfx::FontOptions before delete to fix memory leak.