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 / 10205
    txt2dat - Create LDraw files from text —Ross Crawford
   Hi all, I've just uploaded the first beta version of txt2dat, a command-line program to create LDraw files from text. It has been developed using cygwin and mingw on Windows XP, and has not been fully tested in any other environments. You can (...) (19 years ago, 15-Apr-05, to lugnet.cad.dev, FTX)  
   
        Re: txt2dat - Create LDraw files from text —Dave Schuler
     (...) Okay, I admit it: at first I thought "text to LDraw? Big deal--I write all my LDraw partsfiles as text files." But then I clicked on the link and figured it out. Wow, this utility is a great idea! I just downloaded it and will give feedback as (...) (19 years ago, 17-Apr-05, to lugnet.cad.dev, FTX)
    
         Re: txt2dat - Create LDraw files from text —Ross Crawford
     (...) Thanks Dave! Any feedback is much appreciated. I've just uploaded a new version, so you might wanna grab that. ROSCO (19 years ago, 17-Apr-05, to lugnet.cad.dev, FTX)
   
        Re: txt2dat - Create LDraw files from text —Ross Crawford
     (...) I've uploaded version 0.1.3, with a couple of bug fixes, and source code. Enjoy! ROSCO (19 years ago, 17-Apr-05, to lugnet.cad.dev, FTX)
   
        Re: txt2dat - Create LDraw files from text —Don Heyse
     (...) Wow, that's cool! LDRAW stuff sent to stdout. I finally get to try ldglite with a pipe from a real program, and it all seems to work. txt2dat -s hello -c 4 -p 72 c:\windows\fonts\ariel.ttf | ldglite -i1 -MFhello.png -- Thanks. That was fun, (...) (19 years ago, 18-Apr-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Ross Crawford
     (...) Nuthin like a good ol' command line utility ;) though I wouldn't be adverse to someone creating a nice graphical interface - working out which font file to use is a bit of a pain sometimes... ROSCO (19 years ago, 29-Apr-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Don Heyse
      (...) Yeah, I was gonna suggest you convert the "font" from the ldraw lettered tiles into a cheesy builtin internal font, which would be used by default. Then add a -f before the font if you can find a better one somewhere. That way you could make (...) (19 years ago, 29-Apr-05, to lugnet.cad.dev)
     
          Re: txt2dat - Create LDraw files from text —Kevin L. Clague
       (...) <snip> (...) ahhh..... ummm.... LSynth? LPub has its own built in cheezy little GUI! (...) K (19 years ago, 29-Apr-05, to lugnet.cad.dev)
      
           Re: txt2dat - Create LDraw files from text —Don Heyse
       (...) Err... yeah, lsynth. That's why I couldn't find it. So now that I found it it looks a bit more than 10 lines. Oops. Anyhow, substitute txt2dat for lsynth, make a few little additions and ya get a cheesy GUI for txt2dat that sorta works. Enjoy, (...) (19 years ago, 29-Apr-05, to lugnet.cad.dev)
     
          Re: txt2dat - Create LDraw files from text —Ross Crawford
       (...) All we need to generate the cheesy LEGO font file is an output-truetype module for autotrace, and a ready supply of lettered tiles ;) ROSCO (19 years ago, 29-Apr-05, to lugnet.cad.dev)
      
           Re: txt2dat - Create LDraw files from text —Don Heyse
       (...) That's not too hard to find. (URL) like a wrapper for autotrace and some other stuff. (...) Yeah, you got me there. I think I've got a couple a numbers from the harry potter house sets, and that's about it. Yer more likely to get the whole (...) (19 years ago, 30-Apr-05, to lugnet.cad.dev)
      
           Re: txt2dat - Create LDraw files from text —Ross Crawford
       (...) Actually, looking at the brick 1x1s with letters in LDraw, it should be possible to generate glyphs straight from the DAT files. Then it's just a matter of packaging them up nicely in a font file, saves having to convert it to a bitmap & back. (...) (19 years ago, 30-Apr-05, to lugnet.cad.dev)
     
          Re: txt2dat - Create LDraw files from text —Ross Crawford
      (...) Your wish is my command... well almost. (URL) (19 years ago, 9-May-05, to lugnet.cad.dev)
     
          Re: txt2dat - Create LDraw files from text —Don Heyse
      (...) coerce it into TrueType format? Always one to push my luck, I do have two little quibbles. I liked the way version 1.4 printed the usage info when running txt2dat with no args. Now it prints a weird error message. Also, the internal default (...) (19 years ago, 9-May-05, to lugnet.cad.dev, FTX)
     
          Re: txt2dat - Create LDraw files from text —Ross Crawford
       (...) Well I worked out the scale factor, and imported the DATs into an Access db (some had to have some stuff inlined first) then manually went through the polygons working out all the verteces and entered them directly using Font Creator. (...) (...) (19 years ago, 9-May-05, to lugnet.cad.dev, FTX)
     
          Re: txt2dat - Create LDraw files from text —Ross Crawford
      (...) You can find it (URL) here>. ROSCO PS: Does anyone want the brick.ttf font? It's not really very useful because of the limited characters, but if anyone wants it, I'll make a separate download page for it. (19 years ago, 10-May-05, to lugnet.cad.dev, FTX)
    
         Re: txt2dat - Create LDraw files from text —Anders Isaksson
     (...) Quick hack: (URL) (Exe + Delphi 5 source, 270 kB) (...) I googled for it (going from font name to font file) and could only find the advice to enumerate all font files and read the info in them. Sounds like loads of work :-( I did it the other (...) (19 years ago, 30-Apr-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Ross Crawford
      (...) Wow! Thanks Anders, I will add a link from my page next time I update it! (...) I see what you mean. I never realised it would be so hard to get that information, good ol' windoze. I think your way is the easiest workaround. (...) Works great (...) (19 years ago, 30-Apr-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Dean Earley
     (...) I was trying to knock something up in VB, but came across the problem of getting the file from the font. I couldn't find anything suitable in the registry either. (19 years ago, 1-May-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Don Heyse
     (...) 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)
    
         Re: txt2dat - Create LDraw files from text —Anders Isaksson
     (...) ?? 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 (...) (19 years ago, 3-May-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Don Heyse
      (...) 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 —Anders Isaksson
       (...) ?? 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 (...) (19 years ago, 3-May-05, to lugnet.cad.dev)
      
           Re: txt2dat - Create LDraw files from text —Don Heyse
       (...) That's odd. I always set explorer that way myself, but I have the same desktop.ini file and the same behavior in the fonts directory on both XP and 95. Apparently you can modify all sorts of folder behavior with these magic options in (...) (19 years ago, 4-May-05, to lugnet.cad.dev)
     
          Re: txt2dat - Create LDraw files from text —Travis Cobbs
      (...) 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 (...) (19 years ago, 5-May-05, to lugnet.cad.dev)
     
          Re: txt2dat - Create LDraw files from text —Don Heyse
      (...) Maybe it's a language thing. I've seen hints that some of the desktop.ini bits behave differently when you're set up for a different language. Or perhaps the OEMs package Windows differently for other countries and skip the desktop.ini file in (...) (19 years ago, 5-May-05, to lugnet.cad.dev)
    
         Re: txt2dat - Create LDraw files from text —Dean Earley
     (...) 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)
    
         Re: txt2dat - Create LDraw files from text —Ross Crawford
     (...) 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 (...) (19 years ago, 4-May-05, to lugnet.cad.dev)
   
        Re: txt2dat - Create LDraw files from text —Ross Crawford
   (...) Version 0.1.4 now available at the same page. Changes in v0.1.4 are: Use “LDraw inverse colour” for lines. Fixed non-ansi definition of add_char() and add_string(). Implemented better algorithm for choosing the number of segments in splines. (...) (19 years ago, 29-Apr-05, to lugnet.cad.dev, FTX)
 

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