Hi Neil,
How do you get the font name from the combo box - we tested with the following code on windows and it was working OK:
using Nevron.Nov.UI;
using Nevron.Nov.Windows.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TestThumbnailCombo
{
public partial class Form1 : Form
{
NFontNameThumbnailComboBox fontThumbnailCombo;
public Form1()
{
InitializeComponent();
// clear all controls from the form
// Add a NOV widget inside the form
fontThumbnailCombo = new NFontNameThumbnailComboBox();
fontThumbnailCombo.SelectedIndexChanged += SayHelloWorld_SelectedIndexChanged;
Controls.Add(new NNovWidgetHost<NFontNameThumbnailComboBox>(fontThumbnailCombo));
}
private void SayHelloWorld_SelectedIndexChanged(Nevron.Nov.Dom.NValueChangeEventArgs arg)
{
textBox1.Text = fontThumbnailCombo.SelectedItem.Text;
}
}
}
Regarding the cutoff - it is caused by the fact that some font report smaller ascent / descent than the actual ascent descent of the rendered glyphs. On the other hand the paragraph rendering is clipped in order for the paragraph to be cached by the internal render cache of the control which leads to those cutoffs. We have implemented a fix that internally inflates the clip bound of the paragraph with the maximum font ascent/descent metrics from the HHEA font table, which should take care of this and will publish a SP yearly next week for you to try it.
Best Regards,
Nevron Support Team