|
Group: Forum Members
Posts: 0,
Visits: 166
|
I've sorted it. You need to use FamilyName, not DisplayName
mmdv.Content.Selection.SelectAll(); mmdv.Content.Selection.SetFontSizeToSelectedInlines(MMFont.PointSize); mmdv.Content.Selection.SetFontNameToSelectedInlines(MMFont.FamilyName); mmdv.Content.Selection.DeselectAll();
For example, 'Brush Script MT' has a FamilyName 'Brush Script MT' but a DisplayName 'Brush Script MT Italic' and somehow this was stopping the NRichTextView from changing the font. Thanks Neil
|