C# 从自定义字体中获取特定字符并将其插入到字符串中

C# Get specific char from a custom font and insert it into string

我有这样的字符串"my profeesion is - G",我需要用自定义字体符号替换"G"。在自定义字体中,此字符是一个图标。所以结果应该像 "my profeesion is - 'ICON AT G INDEX AT CUSTOM FONT'"。谢谢。

使用 Paragraph class 的 AddFormattedText() 方法在单个段落中混合多个 styles/fonts。

另请参阅:
http://pdfsharp.net/wiki/MigraDocFirstSteps.ashx
http://pdfsharp.net/wiki/HelloMigraDoc-sample.ashx