private void RedrawFont() { ClearStatus(); pictureBoxText.BackColor = backColor; panel1.BackColor = backColor; try { pictureBoxText.Image = fontService.RenderString(sampleText, foreColor, backColor); ClearStatus(); if (pictureBoxText.Image == null) { ShowInfo("Nothing was rendered. Perhaps the selected font doesn't include the characters you need."); } } catch (Exception ex) { ShowException(ex); pictureBoxText.Image = null; } pictureBoxText.Visible = pictureBoxText.Image != null; }