Predefiniowane ustawienia czcionek FallBack dla czcionek Google Noto

Contents
[ ]

Aspose.Words zapewnia predefiniowane ustawienia rezerwowe czcionek dla czcionek Google Noto. Są to darmowe czcionki na licencji SIL Open Font License, które można pobrać z Google Noto Fonts. Klasa FontFallbackSettings zapewnia metodę LoadNotoFallbackSettings. Ładuje predefiniowane ustawienia awaryjne, które używają czcionek Google Noto, Jak pokazano w poniższym przykładzie kodu:

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);