PDFView4NET WPF Edition
PostScriptFont Constructor(PostScriptFont,Double)




O2S.Components.PDFView4NET.Graphics.Fonts Namespace > PostScriptFont Class > PostScriptFont Constructor : PostScriptFont Constructor(PostScriptFont,Double)
the original PostScriptFont object
the size of the new font
Initializes a new PostScriptFont object based on an existing font object.
Syntax
'Declaration
 
Public Function New( _
   ByVal font As PostScriptFont, _
   ByVal size As Double _
)
'Usage
 
Dim font As PostScriptFont
Dim size As Double
 
Dim instance As New PostScriptFont(font, size)
public PostScriptFont( 
   PostScriptFont font,
   double size
)
public: PostScriptFont( 
   PostScriptFont* font,
   double size
)
public:
PostScriptFont( 
   PostScriptFont^ font,
   double size
)

Parameters

font
the original PostScriptFont object
size
the size of the new font
Remarks
Use this constructor when the same font (the same face)) is used multiple time but at different sizes. This will avoid reparsing the font file. Because the some of the internal structures are shared by the new and the original font object, changing the bold and italic modifiers for one font object, will also update the other font object. This is because the values of this modifiers are built in the font data. All the other properties of the font (underline, overline, strikethrough, size) can be changed without side effects. The embedding can not be changed for the new font, if the original font is embedded, this new font will use the same embedded data, in order to avoid redundancy.
Requirements

Target Platforms: 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

Reference

PostScriptFont Class
PostScriptFont Members
Overload List