Aspose::Words::Saving::FontSavingArgs class
Contents
[
Hide
]FontSavingArgs class
Provides data for the FontSaving() event. To learn more, visit the Save a Document documentation article.
class FontSavingArgs : public System::Object
Methods
Method | Description |
---|---|
get_Bold() const | Indicates whether the current font is bold. |
get_Document() const | Gets the document object that is being saved. |
get_FontFamilyName() const | Indicates the current font family name. |
get_FontFileName() const | Gets or sets the file name (without path) where the font will be saved to. |
get_FontStream() const | Allows to specify the stream where the font will be saved to. |
get_IsExportNeeded() const | Allows to specify whether the current font will be exported as a font resource. Default is true. |
get_IsSubsettingNeeded() const | Allows to specify whether the current font will be subsetted before exporting as a font resource. |
get_Italic() const | Indicates whether the current font is italic. |
get_KeepFontStreamOpen() const | Specifies whether Aspose.Words should keep the stream open or close it after saving a font. |
get_OriginalFileName() const | Gets the original font file name with an extension. |
get_OriginalFileSize() const | Gets the original font file size. |
GetType() const override | |
Is(const System::TypeInfo&) const override | |
set_FontFileName(const System::String&) | Setter for Aspose::Words::Saving::FontSavingArgs::get_FontFileName. |
set_FontStream(const System::SharedPtr<System::IO::Stream>&) | Setter for Aspose::Words::Saving::FontSavingArgs::get_FontStream. |
set_FontStream(std::basic_ostream<CharType, Traits>&) | |
set_IsExportNeeded(bool) | Allows to specify whether the current font will be exported as a font resource. Default is true. |
set_IsSubsettingNeeded(bool) | Setter for Aspose::Words::Saving::FontSavingArgs::get_IsSubsettingNeeded. |
set_KeepFontStreamOpen(bool) | Setter for Aspose::Words::Saving::FontSavingArgs::get_KeepFontStreamOpen. |
static Type() |
Remarks
When Aspose.Words saves a document to HTML or related formats and ExportFontResources is set to true, it saves each font subject for export into a separate file.
FontSavingArgs controls whether particular font resource should be exported and how.
FontSavingArgs also allows to redefine how font file names are generated or to completely circumvent saving of fonts into files by providing your own stream objects.
To decide whether to save a particular font resource, use the IsExportNeeded property.
To save fonts into streams instead of files, use the FontStream property.
See Also
- Namespace Aspose::Words::Saving
- Library Aspose.Words for C++