How to make Font.OfSize bold

HBuiHBui USMember

I have a Label and want to make it bold.

I only know BoldSystemFontOfSize() (obsolete) and the new Font.SystemFontOfSize(size,attribute) but how can I apply bold to a Font.OfSize(string name, double size) ?? The Method only got 2 arguments but I want to have my Sans Serif in bold :(

Thanks

Posts

  • HBuiHBui USMember

    For everyone who has the same problem:

    Font = Font.OfSize("font-family",Size).WithAttributes(FontAttributes.Bold),

Sign In or Register to comment.