fontname from ttf

  • Thread starter Thread starter 2G
  • Start date Start date
2

2G

Hi,

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

Grtz.
 
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 *'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top