Predefiniowane ustawienia czcionek FallBack dla czcionek Google Noto
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); |
Tylko czcionki Noto w stylu Sans o regularnej wadze są używane w predefiniowanych Ustawieniach.
Zobacz także:
- Google Noto czcionki aby pobrać darmowe czcionki