By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,420 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,420 IT Pros & Developers. It's quick & easy.

fontname from ttf

P: n/a
2G
Hi,

Is there a way to read the fontname from a ttf file which is not installed ?

Grtz.
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Check this article
http://www.codeproject.com/gdi/fontnamefromfile.asp

Rajagopal Pasupuleti
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #2

P: n/a
2G
I'm trying to use it with c# managed code but I get some errors and don't
know what to do whit them since my c++ knowlegde is very limited and it's
the first time I'm using managed code

TCHAR lpszNameBuf = csTemp.GetBuffer(ttRecord.uStringLength + 1);

error: e:\#new\xd045\xd045.h(95): error C2440: 'initializing' : cannot
convert from 'ATL::CSimpleStringT<BaseType>::PXSTR' to 'TCHAR' with [
BaseType=TCHAR ]
ZeroMemory(lpszNameBuf, ttRecord.uStringLength + 1);

error: e:\#new\xd045\xd045.h(96): error C2664: 'memset' : cannot convert
parameter 1 from 'TCHAR' to 'void *'
f.Read(lpszNameBuf, ttRecord.uStringLength);

error: e:\#new\xd045\xd045.h(97): error C2664: 'CFile::Read' : cannot
convert parameter 1 from 'TCHAR' to 'void *'


"Rajagopal Pasupuleti" <ra********************@SPAMajay.com> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...

Check this article
http://www.codeproject.com/gdi/fontnamefromfile.asp

Rajagopal Pasupuleti
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.