FontData — Aspose.Slides FOSS for C++ API Reference

The FontData class represents font name and metadata used in text formatting.

Namespace: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/font_data.h>
class FontData

Header: include/Aspose/Slides/Foss/font_data.h


IFontData Interface

The IFontData interface (from i_font_data.h) defines:

MethodDescription
font_name()Returns the font family name.
set_font_name(const std::string&)Set the font family name.

Usage

Font data is typically accessed through PortionFormat on a Portion object:

// Conceptual usage:
// auto& portion_format = portion.portion_format();
// auto& font = portion_format.latin_font();
// font.set_font_name("Arial");

See Also