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)
| Parameter | Type | 描述 |
|---|---|---|
| familyName | System::String | Font 族名。 |
| sizePoints | float | Font 点数大小(1 点等于 1/72 英寸)。 |
| style | System::Drawing::FontStyle | Font 样式。 |
ReturnValue
返回 DrFont
备注
通过字体族名称、大小、样式和备用字体族名称获取 DrFont。
通过字体族名称、大小、样式、字体大写形式和备用字体族名称获取 DrFont。
通过字体族名称、样式和大小获取 System::Drawing::Font。
通过字体族名称、样式和大小创建 System::Drawing::Font。
///
另见
- Typedef SharedPtr
- Class Font
- Class String
- Enum FontStyle
- Class ExternalFontCache
- Namespace Aspose::Page
- Library Aspose.Page for C++