Aspose::Page::ExternalFontCache::CreateFontByFamilyName 方法

ExternalFontCache::CreateFontByFamilyName method

通过字体族名称、大小、样式和大写字母获取 DrFont

static System::SharedPtr<System::Drawing::Font> Aspose::Page::ExternalFontCache::CreateFontByFamilyName(System::String familyName, float size, System::Drawing::FontStyle style)
ParameterType描述
familyNameSystem::StringFont 族名。
sizePointsfloatFont 点数大小(1 点等于 1/72 英寸)。
styleSystem::Drawing::FontStyleFont 样式。

ReturnValue

返回 DrFont

备注

通过字体族名称、大小、样式和备用字体族名称获取 DrFont

通过字体族名称、大小、样式、字体大写形式和备用字体族名称获取 DrFont

通过字体族名称、样式和大小获取 System::Drawing::Font

通过字体族名称、样式和大小创建 System::Drawing::Font

///

另见