12/06/11

FontFactory having problem with intialize the font

Hi,

see when you going to using font factory class while converting simple HTML page to PDF file at that time you will face some kind of problem like font that we are going to used which in not reflect in our page.

like suppose we are using Arial Narrow font but it wouldn't reflect in your page or it is only taking Arial as font. for this problem the see best solution in step wise

1. see the given font available in font factory class. by using it's fontfactory..IsRegistered(font name) method. if it's giving false result then the given font is not available in font factory class.

2. registered those font whoever is not available in the font class i.e.
fontfactory.Registered("path of the font","alies name")

fontfactory.Registered("C:\\WINDOWS\\Fonts\\ARIALN.TTF","ArialNarrow")
finally this font available to use now. i.e fontfactory.Getfont("ArialNarrow").