Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TrueType and X



Nikolay Elkov <nickx@example.com> writes:

> does anyone have an idea how to use ttc(TrueType collection) files
> with X(4.0.3)? when I try to use ttmkfdir it writes just '0' to
> fonts.dir. how can I make it 'see' the fonts?

First, don't edit fonts.dir, as fonts.dir is overwritten by mkfontdir.
Edit fonts.scale instead.

Second, edit your fonts.scale file manually, for example:

    msmincho.ttc -Ricoh-MS Mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
    msmincho.ttc -Ricoh-MS Mincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
    [... other entries supported by this font, omitted ...]

    :2:msmincho.ttc -Ricoh-MS Mincho two-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
    :2:msmincho.ttc -Ricoh-MS Mincho two-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
    [... other entries supported by this font, omitted ...]

:2: is the "freetype" syntax to access the second face in the ttc
file. "ttc" means TrueType collection, i.e. ttc files are a collection
of several TrueType fonts.

If you use the "xtt" module instead of the "freetype" module, use
":fn=2" instead of ":2:" to acess the second face, for example:

    :fn=2:msmincho.ttc -Ricoh-MS Mincho two-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0

-- 
Mike Fabian   <mfabian@example.com>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links