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 / 10170
10169  |  10171
Subject: 
TrueType font converter?
Newsgroups: 
lugnet.cad.dev
Date: 
Sat, 26 Feb 2005 07:58:21 GMT
Viewed: 
1820 times
  
Does anyone know of a utility to convert TT font glyphs to LDraw DATs? I would
be interested in looking at writing such a beast, if it hasn't already been
done. I'm looking at this to be able to create LDraw representations of custom
stickers.

And you guys might be able to help me out with some algorithmic stuff for it
too, the 2 biggest things I need are probably:

1. An algorithm to approximate 2-d bezier curves with line segments and
2. An algorithm for filling a closed curve with tris/quads

Any pointers gratefully received!

ROSCO



Message has 2 Replies:
  Re: TrueType font converter?
 
(...) Your best bet to get a quick result would probably be to look in some 3D graphics libraries for OpenGL and find working code to get a TT glyph out into a mesh model. Exporting a flat mesh model to LDraw format yourself is not very difficult, (...) (20 years ago, 26-Feb-05, to lugnet.cad.dev)
  Re: TrueType font converter?
 
(...) Heh, all the answers are already on lugnet. Make an array of points from the bezier and apply this algorithm. (URL) 2. An algorithm for filling a closed curve with tris/quads This link has code. I believe Steve tried it, so you can ask him (...) (20 years ago, 28-Feb-05, to lugnet.cad.dev)

5 Messages in This Thread:


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

Custom Search

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