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.
Unfortunately, activation email could not send to your email. Please try again.

how to set the FontStyle of a IPDFFont

Thread ID:

Created:

Updated:

Platform:

Replies:

30198 Jun 13,2005 07:37 PM Jun 21,2005 08:36 AM Windows Forms 1
loading
Tags: PDF
j
Asked On June 13, 2005 07:37 PM

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 08:36 AM

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;

CONFIRMATION

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.

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.

;