From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 11 Sep 2010 21:18:04 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] troff fonts with special characters Topicbox-Message-UUID: 5471b276-ead6-11e9-9d60-3106f5b1d025 Hello, this starts to be daunting... When I use troff with the R font, troff uses metrics from /sys/lib/troff/font/R. Then something, when dpost -f is running, must take the real glyphs and put them into the final ps. I guess that something must read /sys/lib/postscript/troff/R to find out that characters 0-0xFF are now from Times-Roman while above (at least to 0x25FF) are from LucidaSansUnicodeXX (XX=01--25). Finally ps is somehow generated (btw. there is no man page for neither aux/tr2post, nor addpsfonts). Now, if I want to add some characters which I miss in troff (mathematics, like U27E8) while using Times-Roman for basic text, it seems I have to - find some font that covers my characters - get the metrics (widths) of my characters (afm2troff.c for T1, some other tool for TrueType, OpenType) - add the metrics for troff (e.g. add characters to /sys/lib/troff/font/R) - add an entry to the table in /sys/lib/postscript/troff/R saying the name of the new font - put the font somewhere where gs will find it - find some bitmap font so that I can also see the characters on screen, or produce such with ttf2subf - prey :) This, if it's really so, sounds really above my powers... Am I wrong? Thanks Ruda