Font predefinit FallBack Setări pentru Google Noto fonturi
Contents
[
Hide
]
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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