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 / 10239
10238  |  10240
Subject: 
Re: txt2dat - Create LDraw files from text
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 3 May 2005 20:31:39 GMT
Viewed: 
4879 times
  
In lugnet.cad.dev, Anders Isaksson wrote:
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?

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-8CA2-1069-AB1D-08000948F534}

It makes the standard Windows open file dialog behave in a way that
makes selecting the font filename difficult.  Instead of filenames
(*.ttf) you get the font names in the file open dialog and cannot
select them for opening.  But you *can* double click on them
and let windows show you it's font preview window.  Any program using
the standard windows file open dialog is going to run afoul of
this annoying behavior.

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.

Yes, that works.  I can right click on the font name, select properties
and cut and paste the font file name into GUITx2d and things work.  It's
just not obvious when you're looking at the list of fonts in the file
open dialog.

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

Yeah, it'd be nice if windows made it easy for programs to do this
instead of forcing it's bizarre shell extension on unsuspecting users.

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?

I'm pretty sure that was the first thing I thought of, so I went to
Settings tab and tried both an absolute path and a relative path.
I think both came up green, but had the problem.  I try it again when
I get a chance though.

Don



Message has 2 Replies:
  Re: txt2dat - Create LDraw files from text
 
(...) ?? I have WinXP, SP2 and don't see this. But I have set Explorer to not hide anything and show all extensions. I haven't done anything special to the Fonts directory (as I remember), and it shows just like any other. (...) I have a nice little (...) (20 years ago, 3-May-05, to lugnet.cad.dev)
  Re: txt2dat - Create LDraw files from text
 
(...) If you make a program that accepts drag and drop, you can drag the font file onto the program, and it will get the full path. I don't know what's up with Anders' system either. Mine behaves just like yours. Oh, and the UICLSID in the (...) (20 years ago, 5-May-05, to lugnet.cad.dev)

Message is in Reply To:
  Re: txt2dat - Create LDraw files from text
 
(...) ?? 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 (...) (20 years ago, 3-May-05, to lugnet.cad.dev)

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