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 / 10238
10237  |  10239
Subject: 
Re: txt2dat - Create LDraw files from text
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 3 May 2005 19:41:25 GMT
Viewed: 
4443 times
  
Don Heyse wrote:

I'm not sure if this is what you're talking about, but in both the
<http://web.telia.com/~u16122953/guitx2d.zip GUItxt2d app> and
<http://ldglite.sf.net/t2dgui.tcl my cheesy tcl app> I can't get
the font file directly from the file open dialog in XP.  Instead, when
I double click on a font, I get a large window with a preview of that
font.  In order to get the file name I have to right click on the font
name, select properties and then cut and paste the filename
from that dialog.  What a pain indeed.

?? I don't understand exactly what you're saying here. Are you trying to
copy the full file path to the Clipboard?

If so, don't try in the dialog, select a file instead and copy the full path
from the input field 'Font file' on the main screen of GUITx2d.

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 :-)

I noticed another possible problem with the GUItxt2d program. It
looks like the WinExecAndWait function works on XP, but not on Win95.
On 95 I get a small dialog box with the informative message error
message "2", and an OK button.

Actually, this is the message ERROR_FILE_NOT_FOUND, so maybe, just maybe,
you hadn't configured the path to txt2dat.exe?

--
Anders Isaksson, Sweden
BlockCAD:  http://web.telia.com/~u16122508/proglego.htm
Gallery:   http://web.telia.com/~u16122508/gallery/index.htm



Message has 2 Replies:
  Re: txt2dat - Create LDraw files from text
 
(...) No, I figured it out. XP seems to come with a special Hidden System desktop.ini file in the font directory with this in it. [.ShellClassInfo] UICLSID={BD84B380-8C...00948F534} It makes the standard Windows open file dialog behave in a way that (...) (19 years ago, 3-May-05, to lugnet.cad.dev)
  Re: txt2dat - Create LDraw files from text
 
(...) Or... HKEY_LOCAL_MACHINE\S...ft\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? (19 years ago, 3-May-05, to lugnet.cad.dev)

Message is in Reply To:
  Re: txt2dat - Create LDraw files from text
 
(...) I'm not sure if this is what you're talking about, but in both the (URL) GUItxt2d app> and (URL) my cheesy tcl app> I can't get the font file directly from the file open dialog in XP. Instead, when I double click on a font, I get a large (...) (19 years ago, 3-May-05, to lugnet.cad.dev, FTX)

29 Messages in This Thread:











Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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