This question is locked. New answers and comments are not allowed.
Hi,
i am using RadControls for Silverlight Q2 2010 in visual studio 2010.
i am using the below code to add FontFamily("STCAIYUN") to font combobox at runtime.but not take any effect.
private void UserControl_Loaded(object sender, RoutedEventArgs e) { FontFamily jokermanFontFamily = new FontFamily(@"/RuntimeCustomFonts;component/Fonts/STCAIYUN.TTF#????"); RadRibbonComboBoxItem jokerman = new RadRibbonComboBoxItem(); jokerman.Content = "????"; jokerman.FontFamily = jokermanFontFamily; jokerman.Tag = "????"; this.fontsComboBox.Items.Add(jokerman); TextBlock block = new TextBlock(); block.FontFamily = jokermanFontFamily; this.LayoutRoot.Children.Add(block); this.Dispatcher.BeginInvoke(new Action(() => { //for Q2 SP2 Span firstSpan = this.radRichTextBox.Document.Sections.First.Paragraphs.First.Inlines.First as Span; //for Q3 2010 Beta and official Q3 2010 Release //Paragraph firstParagraph = this.radRichTextBox.Document.Sections.First.Blocks.First as Paragraph; //Span firstSpan = firstParagraph.Inlines.First as Span; firstSpan.FontFamily = jokermanFontFamily; this.LayoutRoot.Children.Remove(block); } )); } does RichTextBox support chinese font?
thank you very much!
Eric
www.componentcn.com