Cannot get base font from micross.ttf

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

Cannot get base font from micross.ttf

by Belmiris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I am having trouble creating a a base font for 'Microsoft Sans Serif'
(micross.ttf)

BaseFont bf = BaseFont.CreateFont(m_FontFolder + "\\micross.ttf",
BaseFont.CP1252, BaseFont.NOT_EMBEDDED);

I can create other fonts from but when I try this I get the error:

C:\\Windows\\system32\\Fonts\\micross.ttf not found as file or resource.

even though it IS there.
--
View this message in context: http://www.nabble.com/Cannot-get-base-font-from-micross.ttf-tp24138694p24138694.html
Sent from the itextsharp-questions mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Parent Message unknown Re: Cannot get base font from micross.ttf

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe the file is at C:\\Windows\\Fonts\\micross.ttf.

Paulo

----- Original Message -----
From: "Belmiris" <rickcimbalo@...>
To: <itextsharp-questions@...>
Sent: Sunday, June 21, 2009 9:51 PM
Subject: [itextsharp-questions] Cannot get base font from micross.ttf



I am having trouble creating a a base font for 'Microsoft Sans Serif'
(micross.ttf)

BaseFont bf = BaseFont.CreateFont(m_FontFolder + "\\micross.ttf",
BaseFont.CP1252, BaseFont.NOT_EMBEDDED);

I can create other fonts from but when I try this I get the error:

C:\\Windows\\system32\\Fonts\\micross.ttf not found as file or resource.

even though it IS there.


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions