PDFView4NET WinForms Edition
Bold Property (PostScriptFont)




O2S.Components.PDFView4NET.Graphics.Fonts Namespace > PostScriptFont Class : Bold Property
Gets of sets whether the font object is bold or not.
Syntax
'Declaration
 
Public Overrides NotOverridable Property Bold As Boolean
'Usage
 
Dim instance As PostScriptFont
Dim value As Boolean
 
instance.Bold = value
 
value = instance.Bold
public override bool Bold {get; set;}
public: __property bool get_Bold() override;
public: __property void set_Bold( 
   bool value
) override;
public:
property bool Bold {
   bool get() override;
   void set (    bool value) override;
}

Property Value

This property returns true if this Font object is bold; otherwise, false.
Remarks
When the Type1 font is embedded in the pdf file, the value of this property is ignored because the pdf viewer always renders the appropriate weight (bold or not) based on the embedded font. Embedding a regular font and setting this property to true will have no effect, when the font is embedded in the pdf file.

When the font is not embedded in the pdf file, this property is used to give a hint to the pdf viewer, in order for it to render the correct weight (assuming the font is installed on the local computer). It the bold face of the font is not installed on the local machine, and only the regular face is installed, the pdf viewer will synthesize the bold appearance.

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