Google Notoフォントの定義済みフォントFallBack設定
Contents
[
Hide
]
Aspose.Wordsは、Google Notoフォント用の事前定義されたフォントフォールバック設定を提供します。 これらはSIL Open Font Licenseの下でライセンスされたフリーフォントで、Google Noto Fontsからダウンロードできます。 FontFallbackSettingsクラスはLoadNotoFallbackSettingsメソッドを提供します。 以下のコード例に示すように、Google Notoフォントを使用する事前定義されたフォールバック設定をロードします:
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); |