How can I define "Verdana" font in .DPLX file?

How can I define "Verdana" font in .DPLX file?

Forum member · Nov 7, 2012
Is there any way to define "Verdana" font in .DPLX file currnelty it is not available in DPLX file, if I am define "verdana" font then it showing me invalid font name error.

Re: How can I define "Verdana" font in .DPLX file?

Support · Nov 7, 2012
Hello, You can set the desired OTF and TTF fonts to the report elements. You will need to add the desired font to the dropdown list by clicking on the Font property(dropdown) in the DPLX> scroll to last item Edit> Click on Edit>Click on Add button> Choose the desired System font or browse the font and add it. The new font will be added to the list. Set this added fonts to the report elements. You can also refer the documentation on font management with the DPLX file here . If you would like to dynamically set the custom fonts then you will need to build OpenTypeFont class object by passing the desired font file path. Use this font object and set it to the report elements by accessing them using ElementId. Below is the sample code for it. DocumentLayout report = new DocumentLayout(@"C:\Temp\Sample.dplx"); OpenTypeFont font = new OpenTypeFont(@"Verdana.TTF"); RecordBox recordBox = (RecordBox)report.GetElementById("RecordBox1"); recordBox.Font = font; Document document = report.Run(); document.Draw(@"C:\Temp\Output.pdf"); Thanks, ceTe Software Support Team.