We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to set the FontStyle of a IPDFFont

Thread ID:





30198 Jun 13,2005 11:37 PM UTC Jun 21,2005 12:36 PM UTC WinForms 1
Tags: PDF
Asked On June 13, 2005 11:37 PM UTC

i can''t see the FontStyle property of any Unicode font. seem like: IPDFFont customersTableTitleFont = pdfDoc.Fonts.Add( Server.MapPath("Data/Fonts/simhei.ttf") ); customersTableTitleFont.Size=12; customersTableTitleFont.FontStyle=FontStyle.Bold;

Administrator [Syncfusion]
Replied On June 21, 2005 12:36 PM UTC

Hi Jun, Sorry for the delay in getting back to you. I am afraid, you would not be able to do that since setting Bold to simhei font would require the bold version of the font be available [simheib.ttf]. According to my initial investigation I could see that there were separate ttf [Arial.ttf and Arialbd.ttf] files for Arial, ArialBold etc [C:\WINDOWS\Fonts]etc. Please let me know If you have any questions. Thanks, Stephen. The next version will have support for using >i can''t see the FontStyle property of any Unicode font. seem like: > >IPDFFont customersTableTitleFont = pdfDoc.Fonts.Add( Server.MapPath("Data/Fonts/simhei.ttf") ); >customersTableTitleFont.Size=12; >customersTableTitleFont.FontStyle=FontStyle.Bold;


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon