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 / 10226
10225  |  10227
Subject: 
Re: txt2dat - Create LDraw files from text
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 29 Apr 2005 12:55:04 GMT
Viewed: 
4225 times
  
In lugnet.cad.dev, Ross Crawford wrote:
In lugnet.cad.dev, Don Heyse wrote:
In lugnet.cad.dev, Ross Crawford wrote:
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 download it
<http://www.br-eng.info/about/lego/LDraw/txt2dat/index.htm here>.
If you wanna give it a go, and let me know if you can get it to work,
please feel free.

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,

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...

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 something without
searching around for fonts.

But for a really cheesy GUI you could probably write a 10 line tcl
script that opens a file browser and lets you select a font file
then run something like the command line above, except skip the
-MFhello.png and let ldglite open a small window with the txt2dat
output in it.

  txt2dat -s AbCdEfG -c4 -p72 ariel.ttf | ldglite -v0 -- >NULL

Now where did I put that little tcl script for lpub...

Have funk,

Don



Message has 3 Replies:
  Re: txt2dat - Create LDraw files from text
 
(...) <snip> (...) ahhh..... ummm.... LSynth? LPub has its own built in cheezy little GUI! (...) K (20 years ago, 29-Apr-05, to lugnet.cad.dev)
  Re: txt2dat - Create LDraw files from text
 
(...) 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 (20 years ago, 29-Apr-05, to lugnet.cad.dev)
  Re: txt2dat - Create LDraw files from text
 
(...) Your wish is my command... well almost. (URL) (20 years ago, 9-May-05, to lugnet.cad.dev)

Message is in Reply To:
  Re: txt2dat - Create LDraw files from text
 
(...) 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 (20 years ago, 29-Apr-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