A single font label can map to several physical font files (regular, bold, …) by registering a font configuration before the designer or report loads.

Register a font configuration.
var myFontCollection = [
    { fontName: 'MyFont', fontStyle: 'Regular', fontPath: '../Fonts/Arial.ttf' },
    { fontName: 'MyFont', fontStyle: 'Bold',    fontPath: '../Fonts/Ariblk.ttf' },
];

Stimulsoft.Base.StiFontCollection.registerFontConfig(myFontCollection);

How it works. One logical font name resolves to the correct file per style, so bold and regular text render from separate .ttf files under a shared label.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.