Re: ttf printing


Subject: Re: ttf printing
From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Tue Feb 06 2001 - 04:26:02 CST


> I have a suspicion that by using different XLFDs with same font name but
> different encoding field it will be possible to get all characters from font
> displayed (probably by using XFont with the encoding field in xlfd that has
> the character being drawn in it). May be creating a fontset from XLFDs with
> the same font name and different encoding field will work and will allow not
> to switch XFont when drawing each character, and will allow to utilize all
> glyphs in given font?

That's what I thought, and this is how it works with ttf fonts -- you
specify iso8859-1 and get iso-8859-1 font, and if you specify iso-
8859-8 you get a Hebrew font and and if you specifiy iso10646-1
you get a unicode font. But with the postscript font irrespective of
what encoding I specify in the encoding field, the font behaves like
an iso8859-1 font.

> Another option I think worth considering is to inspect what gtk-2.0 uses (it
> uses Pango - and what mechanism pango uses?). I saw a screenshots of pango
> showing a lot of various languages in one text widget. Have anybody tried
> gtk-2.0 betas? May be these quesions should be asked to
> gtk-devel-list@gnome.org? If this problem is solved, may be we should wait for
> gtk-2.0 and don't bother with utf8 input and drawing and concentrate on
> printing?

I though about that too, but there are no links to gtk 2 sources on
the gtk website ... If I recall corretly, Pango might use font sets as
well as proper Unicode fonts; the problem with fontsets is that it
would require much more significant rewrite of our code, and that
IMHO font sets are anachronistic, and by the time utf-8 locales will
become the standard, there will be no need for font sets, because
there will be enough Unicode fonts.

The input and drawing for utf-8 are already implemented, you just
need to use ttf fonts; that's why I am so keen to be able to print ttf.
I personally am quite happy to use ttf fonts and there are virtually
no free Type1 Unicode fonts around anyway.

Tomas

*********************************************
tomas@frydrych.net / www.frydrych.net
PGP keys: http://www.frydrych.net/contact.html



This archive was generated by hypermail 2b25 : Tue Feb 06 2001 - 04:32:05 CST