You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PowerPoint/Conversions/PowerPoint-To-Image/NET/Fallback-Fonts-in-PPTXtoImage-Conversion.md
+248Lines changed: 248 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,45 @@ using (FileStream fileStreamInput = new FileStream("Template.pptx", FileMode.Ope
103
103
104
104
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-Image-conversion/Fallback-fonts-based-on-scripttype).
105
105
106
+
## Fallback Symbols based on script type
107
+
108
+
The following code example demonstrates how a user can add fallback fonts for Symbols and Emojis, which Presentation considers internally when converting a PowerPoint presentation to an Image.
109
+
110
+
{% tabs %}
111
+
112
+
{% highlight C# tabtitle="C# [Cross-platform]" %}
113
+
//Load the PowerPoint presentation into stream.
114
+
using (FileStream fileStreamInput = new FileStream("Template.pptx", FileMode.Open, FileAccess.Read))
115
+
{
116
+
//Open the existing PowerPoint presentation with loaded stream.
117
+
using (IPresentation pptxDoc = Presentation.Open(fileStreamInput))
118
+
{
119
+
//Adds fallback font for basic symbols like bullet characters.
<td>Cambria Math, Noto Sans Math, Segoe UI Symbol, Arial Unicode MS</td>
551
+
</tr>
552
+
<tr>
553
+
<td>Emoji</td>
554
+
<td>0x1F300 - 0x1FAFF<br>
555
+
0xFE0F - 0xFE0F</td>
556
+
<td>Segoe UI Emoji, Noto Color Emoji, Arial Unicode MS</td>
557
+
</tr>
310
558
</table>
311
559
312
560
N> The .NET PowerPoint Library (Presentation) uses System.Drawing functionalities for PowerPoint to image conversion conversion in .NET Framework applications. And System.Drawing itself uses a fallback font to preserve the Unicode text while drawing the text in the image. So, these Fallback fonts APIs are **not supported in .NET Framework**.
0 commit comments