knowledge-database (beta)

Current group: comp.text.

Need fmt-like utility to wrap text with specified font

Need fmt-like utility to wrap text with specified font  
Tristan Miller
From:Tristan Miller
Subject:Need fmt-like utility to wrap text with specified font
Date:Mon, 17 Jan 2005 01:04:40 +0100
Greetings.

I'm looking for a utility similar to Unix fmt, except with proportional
TrueType fonts. That is, I have a text file with hard line breaks after
every paragraph. I want said program to then insert hard line breaks
where soft line breaks would have occurred had the text file been rendered
with a given font, font size (in pixels), and window width (in pixels).

Ideally I'd like this program to be a simple filter I can invoke from the
command line, though if I have to jump through a few hoops with a GUI that
would also be fine. For example, if there is some web browser which can
convert HTML+CSS to a formatted text file, that would also be acceptable.
That is, I would use something like the following as input:









My long paragraph of text which I want wrapped goes here.





Anyone know of such a program?

Regards,
Tristan

--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you
   

Copyright © 2006 knowledge-database   -   All rights reserved