Specifies information about a font used in the document.
You do not create instances of this class directly. Use the FontInfos property to access the collection of fonts defined in a document.
Shows how to print the details of what fonts are present in a document.
#include <Aspose.Words.Cpp/Fonts/FontInfo.h>
Public Member Functions | |
String | get_AltName () const |
Gets or sets the alternate name for the font. More... | |
int32_t | get_Charset () |
Gets or sets the character set for the font. More... | |
FontFamily | get_Family () const |
Gets or sets the font family this font belongs to. More... | |
bool | get_IsTrueType () const |
Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font. Default is true. More... | |
String | get_Name () const |
Gets the name of the font. More... | |
ArrayPtr< uint8_t > | get_Panose () const |
Gets or sets the PANOSE typeface classification number. More... | |
FontPitch | get_Pitch () const |
The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting. More... | |
ArrayPtr< uint8_t > | GetEmbeddedFont (EmbeddedFontFormat format, EmbeddedFontStyle style) |
Gets a specific embedded font file. More... | |
ArrayPtr< uint8_t > | GetEmbeddedFontAsOpenType (EmbeddedFontStyle style) |
Gets an embedded font file in OpenType format. Fonts in Embedded OpenType format are converted to OpenType. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_AltName (String value) |
Setter for get_AltName. More... | |
void | set_Charset (int32_t value) |
Setter for get_Charset. More... | |
void | set_Family (FontFamily value) |
Setter for get_Family. More... | |
void | set_IsTrueType (bool value) |
Setter for get_IsTrueType. More... | |
void | set_Panose (ArrayPtr< uint8_t > value) |
Setter for get_Panose. More... | |
void | set_Pitch (FontPitch value) |
Setter for get_Pitch. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
System::String Aspose::Words::Fonts::FontInfo::get_AltName | ( | ) | const |
Gets or sets the alternate name for the font.
Cannot be null
. Can be an empty string.
Shows how to access and print details of each font in a document.
int32_t Aspose::Words::Fonts::FontInfo::get_Charset | ( | ) |
Gets or sets the character set for the font.
Shows how to access and print details of each font in a document.
Aspose::Words::Fonts::FontFamily Aspose::Words::Fonts::FontInfo::get_Family | ( | ) | const |
Gets or sets the font family this font belongs to.
Shows how to access and print details of each font in a document.
bool Aspose::Words::Fonts::FontInfo::get_IsTrueType | ( | ) | const |
Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font. Default is true.
Shows how to print the details of what fonts are present in a document.
System::String Aspose::Words::Fonts::FontInfo::get_Name | ( | ) | const |
Gets the name of the font.
Cannot be null
. Can be an empty string.
Shows how to print the details of what fonts are present in a document.
System::ArrayPtr<uint8_t> Aspose::Words::Fonts::FontInfo::get_Panose | ( | ) | const |
Gets or sets the PANOSE typeface classification number.
PANOSE is a compact 10-byte description of a fonts critical visual characteristics, such as contrast, weight, and serif style. The digits represent Family Kind, Serif Style, Weight, Proportion, Contrast, Stroke Variation, Arm Style, Letterform, Midline, and X-Height.
Can be null
.
Shows how to access and print details of each font in a document.
Aspose::Words::Fonts::FontPitch Aspose::Words::Fonts::FontInfo::get_Pitch | ( | ) | const |
The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting.
Shows how to access and print details of each font in a document.
System::ArrayPtr<uint8_t> Aspose::Words::Fonts::FontInfo::GetEmbeddedFont | ( | Aspose::Words::Fonts::EmbeddedFontFormat | format, |
Aspose::Words::Fonts::EmbeddedFontStyle | style | ||
) |
Gets a specific embedded font file.
format | Specifies the font format to retrieve. |
style | Specifies the font style to retrieve. |
null
if the specified font is not embedded.Shows how to extract an embedded font from a document, and save it to the local file system.
System::ArrayPtr<uint8_t> Aspose::Words::Fonts::FontInfo::GetEmbeddedFontAsOpenType | ( | Aspose::Words::Fonts::EmbeddedFontStyle | style | ) |
Gets an embedded font file in OpenType format. Fonts in Embedded OpenType format are converted to OpenType.
style | Specifies the font style to retrieve. |
null
if the specified font is not embedded.Shows how to extract an embedded font from a document, and save it to the local file system.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Fonts::FontInfo::set_AltName | ( | System::String | value | ) |
Setter for Aspose::Words::Fonts::FontInfo::get_AltName.
void Aspose::Words::Fonts::FontInfo::set_Charset | ( | int32_t | value | ) |
Setter for Aspose::Words::Fonts::FontInfo::get_Charset.
void Aspose::Words::Fonts::FontInfo::set_Family | ( | Aspose::Words::Fonts::FontFamily | value | ) |
Setter for Aspose::Words::Fonts::FontInfo::get_Family.
void Aspose::Words::Fonts::FontInfo::set_IsTrueType | ( | bool | value | ) |
Setter for Aspose::Words::Fonts::FontInfo::get_IsTrueType.
void Aspose::Words::Fonts::FontInfo::set_Panose | ( | System::ArrayPtr< uint8_t > | value | ) |
Setter for Aspose::Words::Fonts::FontInfo::get_Panose.
void Aspose::Words::Fonts::FontInfo::set_Pitch | ( | Aspose::Words::Fonts::FontPitch | value | ) |
Setter for Aspose::Words::Fonts::FontInfo::get_Pitch.
|
static |