Version

CreateFont(Font,Single) Method

This creates a font based on the FontData settings and the passed in base font.
Syntax
'Declaration
 
Public Overloads Function CreateFont( _
   ByVal baseFont As Font, _
   ByVal scalingFactor As Single _
) As Font
public Font CreateFont( 
   Font baseFont,
   float scalingFactor
)

Parameters

baseFont
This is the font used to supply default values for the created font. This parameter can not be null.
scalingFactor
The scaling factor used to determine the size of the font.

Return Value

The created font. It is the caller's responsibility to dispose of this font when no longer needed. Note: if no FontData properties have been set or the property values are the same as the base font then this method will return null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also