To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10241
Subject: 
Re: txt2dat - Create LDraw files from text
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 3 May 2005 23:37:15 GMT
Viewed: 
4617 times
  
The problem we were discussing was the fact that there doesn't seem to exist
a nice way to get (programatically) the font file name, given a font name
(and attributes). The only solution found yet for this seems to be: Locate
all font files on the system, read all the info from them, and build a huge
table in memory (or database) and use this. Much too much work for a quick
hack :-)

Or...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
This brought to my attention that not all the files listed are "single
font" files (look for ttc files).

Is there any reason that txt2dat can't handle font face names?

--
Dean Earley, Dee (dean@earlsoft.co.uk)

irc:    irc://irc.blitzed.org/
web:    http://personal.earlsoft.co.uk
phone:  +44 (0)780 8369596


Subject: 
Re: txt2dat - Create LDraw files from text
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 4 May 2005 00:27:00 GMT
Viewed: 
4624 times
  
In lugnet.cad.dev, Dean Earley wrote:

Is there any reason that txt2dat can't handle font face names?

Well, apart from the difficulty of converting a Windows face name to a filename
as identified here, I always intended it to be relatively easy to port to other
platforms. And the most non-platform specific way I could think to do that was
to require the full path to the actual font file.

I would rather concentrate on the guts of it, and let others produce nice front
ends (like quitx2d) for their platform of choice.

BTW anyone that feels like porting to other platforms please feel free...

ROSCO


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR