Hi all.
I have been successfully outputting a bulleted list using character 108 and
an unembedded font:

Dim outputList As ZapfDingbatsList = New ZapfDingbatsList(108, 10)
outputList.Symbol.Font = FontFactory.GetFont(FontFactory.ZAPFDINGBATS, 4,
Font.NORMAL, iTextSharp.text.Color.BLACK)

I want to embed the ZAPF font so changed the code to the following:

Dim BFZ As BaseFont = BaseFont.CreateFont(Server.MapPath(fontFolder +
"ZD______.PFM"), "", BaseFont.EMBEDDED)
Dim ZDfont As Font = New Font(BFZ, 4, Font.NORMAL,
iTextSharp.text.Color.BLACK)
Dim outputList As ZapfDingbatsList = New ZapfDingbatsList(108, 10)
outputList.Symbol.Font = ZDfont

However now when i render my PDF the bullet points are white, or not visible
in the PDF. Having looked through the book I think that my problem might be
because it's using the default encoding type but i'm not really sure. Please
could someone help?

Many thanks,

Phil
-- 
View this message in context: 
http://old.nabble.com/Embedding-zapfdingbats-font-for-bulleted-list-tp27434367p27434367.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to