Font predefinit FallBack Setări pentru Google Noto fonturi
Aspose.Words oferă setări predefinite de rezervă a fonturilor pentru Google Noto fonturi. Acestea sunt fonturi gratuite licențiate sub SIL Open Font License, care pot fi descărcate din Google Noto fonturi. Clasa FontFallbackSettings oferă o metodă LoadNotoFallbackSettings. Se încarcă setările de rezervă predefinite, care utilizează Google Noto fonturi așa cum se arată în exemplul de cod de mai jos:
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); |
Numai fonturile Noto în stil Sans cu greutate obișnuită sunt utilizate în setări predefinite.
Vezi și:
- Google Noto fonturi pentru a descărca fonturi gratuite