Re: Ligatures and Pango?



On Mon, 2005-11-14 at 11:50 +0800, Arne Götje
(=?utf-8?q?=E9=AB=98=E7=9B=9B=E8=8F=AF?=) wrote:
> On Monday 14 November 2005 11:14, Owen Taylor wrote:
> > On Thu, 2005-11-03 at 20:18 -0500, Behdad Esfahbod wrote:
> > > On Thu, 3 Nov 2005, Han-Wen Nienhuys wrote:
> > > > Behdad Esfahbod wrote:
> > > > > The OpenType fonts declare which ligatures they have.  I think
> > > > > it will be solved by the patch in this bug:
> > > > >
> > > > >   http://bugzilla.gnome.org/show_bug.cgi?id=101079
> > > > >
> > > > > I'll look into it soon.
> > > >
> > > > Does that include support for TTF files that have ligatures?
> > >
> > > No, I don't think so.
> >
> > I investigated this a while ago and it seemed to be quite
> > non-standard how ligatures are mapped in TTF fonts. There are Unicode
> > codepoints for some of the common ligatures, but fonts (as I recall)
> > frequently mapped even those ligatures into the private-use area. And
> > had other ligatures in the private use area as well.
> >
> > You'd need extra per-font supplemental data to do it well. Though
> > maybe something simple is possible that will get ff/fi/ffi for a
> > reasonable percentage of common fonts.
> 
> The information is in the GSUB table of the TTF font in question. 
> And this is a standard AFAIK. So, the information is there, you just 
> have to use it... :p

If I'm not mistaken, "TTF files" above was in contrast to "OpenType 
fonts", so presumably meant "TTF files without GSUB tables". Of course,
the distinction between an OpenType font and a TTF one is a very
thin distinction :-)

						Owen

Attachment: signature.asc
Description: This is a digitally signed message part



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