Aspose::Words::Font::get_LineSpacing method
Font::get_LineSpacing method
Returns line spacing of this font (in points).
double Aspose::Words::Font::get_LineSpacing()
Examples
Shows how to get a font’s line spacing, in points.
auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);
// Set different fonts for the DocumentBuilder and verify their line spacing.
builder->get_Font()->set_Name(u"Calibri");
ASPOSE_ASSERT_EQ(builder->get_Font()->get_LineSpacing(), 14.6484375);
builder->get_Font()->set_Name(u"Times New Roman");
ASPOSE_ASSERT_EQ(builder->get_Font()->get_LineSpacing(), 13.798828125);
See Also
- Class Font
- Namespace Aspose::Words
- Library Aspose.Words for C++