Re: fonts for pango



On Mon, 19 Mar 2001, Cristian Prevedello wrote:

> Hello,
> i've compiled gtk for framebuffer on i386 with some examples.
> However i couldn't run any of them due problems with pango fonts.
>
> I downloaded URW fonts from the gimp homepage, and untarred them into
> /usr/local/lib/pango/ft2fonts/ (where pango is looking), and
> i setup the following aliases: sans, serif, monospace.
> I think i'm doing something wrong at this point. Into the alias file
> i've something like this:
>
> sans normal normal normal normal "StandardSymL"
>
> Not sure if *StandardSymL* is the right thing. I tried with the filename, with
> the full name found inside fonts.dir, but no luck.
> What exactly should be specified there?
> thank you.

For the urw fonts you could use something like this:

sans normal normal normal normal "urw gothic l"
serif normal normal normal normal "urw palladio l"
monospace normal normal normal normal "nimbus mono l"

For sans you could also use "nimbus sans L", and for serif "nimbus roman
no9 l". The "nimbus mono l" font looks kinda bad though.

The key to look for is the FamilyName in the .afm files. Although you must
use lower case, which seems a bit broken. I'll have to look into that
some day.

Also, you shouldn't use the symbol font for sans. At least not *only*
the symbol fonts. It doesn't contain any normal letters. You could use:

sans normal normal normal normal "urw gothic l,standard symbols l"

To get the symbol font too, although I doubt that freetype will be able to
use the fontspecific encoding in the symbol font.

/ Alex






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