Font problem....

View: New views
1 Messages — Rating Filter:   Alert me  

Font problem....

by raj231362 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi all,


i  have created a pdf from an image . i placed some text at particular position with font "times new roman" it appears  look like "times new roman" but when i copy the text to ms - word , the appearance change and  its shows font "TimesNewRomanPSMT".

i am using following code:-

 chunk = new Chunk("New Zealand Trained Nurses' Association", FontFactory.GetFont("times new roman", "Cp1252", true, 20, 0, iTextSharp.text.Color.RED));
                                chunk.SetTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_FILL, 0, iTextSharp.text.Color.MAGENTA);
                                rect = new iTextSharp.text.Rectangle(x, dH - (y + h), x + w, dH - y - h);
                                ct.SetSimpleColumn(rect.Left, rect.Bottom, rect.Right, rect.Top, 0, GetAllignment(align));
                                ct.AddText(chunk);
                                ct.Go();

i am allready registered font..
so whats the actual problem...please help me???

untitled1.GIF


Regards

Raj