FromFontFile(String,String,Single) Method (GdiFont)
Creates the font using the specified font file stream in TTF format.
'Declaration
Public Overloads Shared Function FromFontFile( _
ByVal As System.String, _
ByVal As System.String, _
ByVal As Single _
) As GdiFont
public static GdiFont FromFontFile(
System.String ,
System.String ,
float
)
public: static GdiFont* FromFontFile(
System.String ,
System.String ,
float
)
public:
static GdiFont^ FromFontFile(
System.String ,
System.String ,
float
)
Parameters
- fontFilename
- The name of font file in TTF format.
- fontFamilyName
- The font family name.
- size
- The font size.
Return Value
A new font based on TTF font file.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5