473,382 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

fontname from ttf

2G
Hi,

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

Grtz.
Nov 15 '05 #1
2 2128

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: |-|erc | last post by:
Hi! Small challenge for you. The index.php uses this file and calls layout(). Take a look at www.chatty.net this file draws the chat login box on the right. I traced the CHAT button it submits...
4
by: Mark B | last post by:
It seems the Access 97 FontName property supports multiple font names, e.g. "Franklin Gothic Medium, Tahoma". I assume that means that if the first font is not available on the target PC, the...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
2
by: sleepylight | last post by:
Hi I'm staring to learn python for some systems administration projects and so far this looks like a really great alternative to using shell for everything. The python docs on the web site are...
5
by: robinsiebler | last post by:
I have a batch of files that I am trying to search for specific text in a specific format. Each file contains several items I want to search for. Here is a snippet from the file: .......
0
by: raji20 | last post by:
Hello Guys, Im using pdflib for generating pdf, It is working fine, when I used a single page pdf as the template, but when I use a pdf with two pages I dont know how to write in first page and...
5
by: =?Utf-8?B?Qkw=?= | last post by:
Hello friends In c# 2005 I have written a function to access "font file name" by "Font name" and it is working fine in all the windows version other than vista, in vista it is throughing an...
17
by: malathib | last post by:
Hi, I have used a rich text editor in my application. I got it from one of the site.all are JS files. My problem is, i want to call a javascript function from the iframe. Can anybody help...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.