Subject:
|
Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
|
Newsgroups:
|
lugnet.cad, lugnet.cad.dev.mac
|
Date:
|
Fri, 2 Mar 2007 14:44:23 GMT
|
Viewed:
|
7003 times
|
| |
| |
In lugnet.cad, Ross Crawford wrote:
|
In lugnet.cad, Jim DeVona wrote:
|
Hi Ross,
It works! I just built it by hand, so Ill write a simple makefile for it
tomorrow. Only issue is that the version of Freetype 2 that comes with OS X
doesnt seem to know about FT_Orientation, so I just ifdeffed out the
few bits that referred to that, possibly at the expense of handling certain
cases (Postscript fonts which are wound the other way, perhaps? I dunno).
|
Hmmm, interesting. txt2dat is currently compiled against 2.1.9, I havent
tried upgrading since txt2dat is the only thing I use it for. But the API doc
at the freetype site still documents
the FT_Orientation API. Also, version 2.3.1 (which I just downloaded to
check) seems to include it. What version do you have?
|
I believe it is freetype 2.1.4 (based on the major/minor/patch definitions in
freetype.h). The headers are last dated 2002, and a look at more recent
freetype changelogs suggests that predates the introduction of
FT_Orientation. Its annoying that the preinstalled libraries arent more up
to date.
|
It also documents
the FT_OUTLINE_REVERSE_FILL flag, which I do vaguely remember from when I
originally wrote the program, and cant remember why I didnt use it. Does
your version support that flag? If so, Ill look into using that instead.
Type 1 (Postscript) fonts are wound the other way (at least the ones I have
are) so we do need to take it into account.
|
Yes, FT_OUTLINE_REVERSE_FILL is defined on my system.
|
|
I have a proposition: working out a Mac build is great, but what would you
say to adapting txt2dat to run on the web (like Bitsticker)? Even more
than my Mac crusade, I like the idea of making all these LDraw tools more
accessible to the casual user, who may not be so keen on the command line or
even just installing lots of little programs. Id be willing to work on
that, when possible, and I could even host it since my web server supports
compiled CGI scripts.
|
Thats also a great idea, but Ill still continue to maintain the stand-alone
executable separately, so itll be up to you to incorporate any changes I may
make to the original :) Either way, Im happy put a to link on my page.
|
Cool. I dont think any modifications to txt2dat itself will even be
necessary: Ill write a CGI script that passes it arguments and returns its
output. That would make it easy to keep the web version in sync with the regular
version.
I just checked and txt2dat builds on my server no problem (it has FT 2.1.9).
Ill work out my makefile later today.
Jim
|
|
Message has 1 Reply:
Message is in Reply To:
18 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
|
|
|
|