Class FontWeight
Inheritance
System.Object
FontWeight
Assembly: IronPdf.dll
Syntax
public sealed class FontWeight : Enum
FontWeight controls the stroke weight applied to fonts during PDF-to-SVG conversion in IronPDF. Default and Normal (aliased as Regular) are the right starting points for body text. The scale runs from Hairline and Thin at the lightest end through Light, ExtraLight, and UltraLight, up to Medium, SemiBold (aliased as DemiBold), Bold, ExtraBold, UltraBold, Heavy, and Black for progressively heavier strokes. See the IronPDF SVG conversion docs for usage context.
var options = new SvgOptions { FontWeight = FontWeight.Bold };
Fields
Black
Declaration
public const FontWeight Black
Field Value
Bold
Declaration
public const FontWeight Bold
Field Value
Default
Declaration
public const FontWeight Default
Field Value
DemiBold
Declaration
public const FontWeight DemiBold
Field Value
Declaration
public const FontWeight ExtraBold
Field Value
Declaration
public const FontWeight ExtraLight
Field Value
Hairline
Declaration
public const FontWeight Hairline
Field Value
Heavy
Declaration
public const FontWeight Heavy
Field Value
Light
Declaration
public const FontWeight Light
Field Value
Medium
Declaration
public const FontWeight Medium
Field Value
Normal
Declaration
public const FontWeight Normal
Field Value
Regular
Declaration
public const FontWeight Regular
Field Value
SemiBold
Declaration
public const FontWeight SemiBold
Field Value
Thin
Declaration
public const FontWeight Thin
Field Value
UltraBold
Declaration
public const FontWeight UltraBold
Field Value
UltraLight
Declaration
public const FontWeight UltraLight
Field Value
value__
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|