* [9fans] catenating subfont files, catsf
@ 2003-12-15 2:59 YAMANASHI Takeshi
2003-12-15 4:14 ` Chris Hollis-Locke
0 siblings, 1 reply; 3+ messages in thread
From: YAMANASHI Takeshi @ 2003-12-15 2:59 UTC (permalink / raw)
To: 9fans
Ttf2subf is great, but the ouptut subfont files have
been sliced into very small pieces.
For example, I tried ttf2subf on the Cyberbit font and it
produced a font(6) file of almost 2000 lines. Furthermore,
in cerntain ttf, the result was almost 4000 lines and it
slows rio considerably using the font.
So I made a program catenating multiple subfont files
into a single file.
The following lines would do the installation for you:
hget http://p9c.cc.titech.ac.jp/plan9/catsf.tgz | gunzip | tar
cd catsf; mk install
See the manpage included in the tgz for more details.
--
YAMANASHI Takeshi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] catenating subfont files, catsf
2003-12-15 2:59 [9fans] catenating subfont files, catsf YAMANASHI Takeshi
@ 2003-12-15 4:14 ` Chris Hollis-Locke
0 siblings, 0 replies; 3+ messages in thread
From: Chris Hollis-Locke @ 2003-12-15 4:14 UTC (permalink / raw)
To: 9fans
----- Original Message -----
>From: "YAMANASHI Takeshi" <uncover@beat.cc.titech.ac.jp>
>
> Ttf2subf is great, but the ouptut subfont files have
> been sliced into very small pieces.
>
> For example, I tried ttf2subf on the Cyberbit font and it
> produced a font(6) file of almost 2000 lines. Furthermore,
> in cerntain ttf, the result was almost 4000 lines and it
> slows rio considerably using the font.
>
> So I made a program catenating multiple subfont files
> into a single file.
>
Wouldn't it be better to fix ttf2subf rather than add more utils to fix
problems with existing ones?
I showed how to do it in a limbo prog I posted here a few months ago.
You map subfonts to standard unicode ranges as defined by unicode.org.
A simple scan determines which pages are present, you then produce subfonts
with 0 width glyphs for
those in a range that do not exist in the source font - causing draw to
render a peterface.
(there are other obvious optimisations to minimise the amount of glyph data
per subfont).
I haven't looked at ttf2subf but the Limbo prog was very simple, it cannot
possibly be that difficult.
Alternatively you could always use my Limbo app.
Chris.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] catenating subfont files, catsf
@ 2003-12-15 5:32 YAMANASHI Takeshi
0 siblings, 0 replies; 3+ messages in thread
From: YAMANASHI Takeshi @ 2003-12-15 5:32 UTC (permalink / raw)
To: 9fans
On Mon Dec 15 13:16:44 JST 2003, Chris Hollis-Locke wrote:
> > So I made a program catenating multiple subfont files
> > into a single file.
> >
> Wouldn't it be better to fix ttf2subf rather than add more utils to fix
> problems with existing ones?
Looking into ttf2subf is harder than reading plan9 documentations
and writing new program for me. :)
> Alternatively you could always use my Limbo app.
Exactly. I just overlooked your limbo program or I wouldn't have
write this. I should have asked the list first. Anyway, it left
me some experience.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-15 5:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 2:59 [9fans] catenating subfont files, catsf YAMANASHI Takeshi
2003-12-15 4:14 ` Chris Hollis-Locke
2003-12-15 5:32 YAMANASHI Takeshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).