Google Noto字体的预定义字体FallBack设置

Contents
[ ]

Aspose.Words为Google Noto字体提供预定义的字体回退设置。 这些是根据SIL开放字体许可证授权的免费字体,可以从Google Noto字体下载。 FontFallbackSettings类提供LoadNotoFallbackSettings方法。 它加载预定义的回退设置,这些设置使用Google Noto字体,如下面的代码示例所示:

For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-C
// The path to the documents directory.
System::SharedPtr<Document> doc = System::MakeObject<Document>(inputDataDir + u"Rendering.doc");
System::SharedPtr<FontSettings> fontSettings = System::MakeObject<FontSettings>();
fontSettings->get_FallbackSettings()->LoadNotoFallbackSettings();
// Set font settings
doc->set_FontSettings(fontSettings);
System::String outputPath = outputDataDir + u"SetFontSettings.SetPredefinedFontFallbackSettings.pdf";
doc->Save(outputPath);