XFont Weight Property. The weight of the font. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Read Only Description
[C#] int

[Visual Basic]
Integer
n/a Yes The weight of the font.

 

   

Notes
 

The weight of the font determines whether the font is light, normal or bold.

The value of this property can be compared against the FontWeight enumeration.

The FontWeight enumeration contains the following values:

  • DontCare = 0
  • Thin = 100
  • ExtraLight = 200
  • Light = 300
  • Normal = 400
  • Medium = 500
  • SemiBold = 600
  • Bold = 700
  • ExtraBold = 800
  • Heavy = 900

 

   

Example
 

None.