Some Fonts are not able to bold/italic

5 posts, 0 answers
  1. yiping
    yiping avatar
    17 posts
    Member since:
    Nov 2015

    Posted 13 Jul Link to this post

    All fonts which are the sub font style of a font family in c:\windows\fonts are not able to set to bold or italic( bold/Italic are not shown in richtextbox but when exported to word, they are showing correctly). Is there any solution on it?

    Some examples: Arial Black, Arial Narrow, Bodoni MT Black, Bodoni MT Condensed,Calibri Light, Franklin Gothic Medium, ... 

  2. yiping
    yiping avatar
    17 posts
    Member since:
    Nov 2015

    Posted 13 Jul Link to this post

    Extra Info: If I put "Arial Narrow" font related file into a folder and read them by var an = System.Windows.Media.Fonts.GetFontFamilies(new Uri("pack://application:,,,/someproject;component/Resources/Arial Narrow/arialn.ttf")); FontManager.RegisterFont(an.First()); The font "./Arial" is added in fonts list and working good as arial narrow. However the texts applied with this font is suffered from export to word/ close reopen.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Boyko
    Admin
    Boyko avatar
    17 posts

    Posted 18 Jul Link to this post

    Hello Yiping,

    I have compared RadRichTextBox with the WPF RichTextBox behavior when displaying bold, italic etc. on the mentioned font families and the behavior is the same.

    About your second question, the font "Arial Narrow" is already registered. Please take a look at the attached screenshot from our demos.  Also, I exported and then imported the document and the text is still there.
    Please have in mind that the RadRichTextBox will initially show all fonts that are installed on the operation system. 

    Regards,
    Boyko
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  5. yiping
    yiping avatar
    17 posts
    Member since:
    Nov 2015

    Posted 19 Jul in reply to Boyko Link to this post

    Here I attached a screen shot of your demo, which I applied Arial Narrow with Bold and Italic but the text are displayed with Arial Narrow without B/I . And second is showing my fonts installation.
  6. Boyko
    Admin
    Boyko avatar
    17 posts

    Posted 22 Jul Link to this post

    Hi Yiping,

    Not all font families allow bold, italic, etc. to be applied to them. You could compare RadRichTextBox with the WPF RichTextBox behavior when displaying bold, italic etc. on the mentioned font families and the behavior is the same. I confirm that everything works as expected. 

    Regards,
    Boyko
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready