This is a migrated thread and some comments may be shown as answers.

Glyph Icons in RTF Document

2 Answers 31 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Harald
Top achievements
Rank 1
Harald asked on 21 Jul 2019, 08:49 PM
Is it possible to use the symbols from the TelerikWebUi font in an RTF document?

2 Answers, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 24 Jul 2019, 11:05 AM
Hi Harald,

Glyphs from the TelerikWebUI font can be inserted in a document. For instance:
<Grid>
        <Grid.Resources>
            <ResourceDictionary Source="/Telerik.Windows.Controls;component/Themes/FontResources.xaml"/>
        </Grid.Resources>
        <telerik:RadRichTextBox x:Name="radRichTextBox">
            <telerik:RadDocument LayoutMode="Paged">
                <telerik:Section>
                    <telerik:Paragraph>
                        <telerik:Span Text="{StaticResource GlyphPdf}" FontFamily="{StaticResource TelerikWebUI}" />
                    </telerik:Paragraph>
                    <telerik:Paragraph>
                        <telerik:Span Text="&#xe001;" FontFamily="{StaticResource TelerikWebUI}"/>
                    </telerik:Paragraph>
                </telerik:Section>
            </telerik:RadDocument>
        </telerik:RadRichTextBox>
    </Grid>
This will render the glyphs in the document respectively. Please note however that exporting the document to RTF and then displaying it with Word for instance, will not show the glyphs as Word it is now aware of TelerikWebUI font.

More information about using glyphs via TelerikWebUI font can be found in the below articles:
 - Font Glyphs Overview
 - RadGlyph

Regards,
Peshito
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Harald
Top achievements
Rank 1
answered on 28 Jul 2019, 01:10 PM
Thanks for the answer. I'm going to use images.
Tags
RichTextBox
Asked by
Harald
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Harald
Top achievements
Rank 1
Share this question
or