Re: No ftcache in freetype?

Owain Ainsworth <[email protected]>
Newsgroups gmane.os.openbsd.x11
Message-ID <[email protected]>
Hi Matthieu,

On Fri, Jul 13, 2007 at 10:20:00AM +0200, Matthieu Herrb wrote:
> Which OpenBSD version are you using ? it that 4.1 (with X.Org 6.9 and
> thus Freetype 2.1) or -current (with X.Org 7.2 and freetype 2.2.1)?

I'm running -current from about two weeks ago. So the latter. The
codebase I checked for this problem was xenocara.

> 
> On those 2 versions the official freetype build system don't seem to
> build this directory either. So I'm not sure if it's some "experimental"
> feature not yet enabled or an obsolete one, supposed to be removed.
> If someone has some information, I'd like to hear about it.

Doing a bit more research on this issue. The freetype2 website
(http://www.freetype.org/freetype2/index.html#features) states:

-FreeType 2 provides its own caching subsystem since release 2.0.1. It
can be used to cache either face instances or glyph images efficiently.

making me believe it is Newer. IIRC i think i remember seeing somewhere
that the API is somewhat unstable, but the performance is fine.
Unfortunately I don't remember where I read this.

The README file for freetype (both the VTK one, 2.1.9 and the xenocara
one) states:     
-- auxiliary modules (optional)

      src/autofit/autofit.c   -- auto hinting module
      src/cache/ftcache.c     -- cache sub-system (in beta)
      src/gzip/ftgzip.c       -- support for compressed fonts (.gz)
      src/lzw/ftlzw.c         -- support for compressed fonts (.Z)
      src/gxvalid/gxvalid.c   -- TrueTypeGX/AAT table validation
      src/otvalid/otvalid.c   -- OpenType table validation
      src/psaux/psaux.c       -- PostScript Type 1 parsing
      src/pshinter/pshinter.c -- PS hinting module
      src/psnames/psnames.c   -- PostScript glyph names support


Also looking at the README.VTK.txt in the vtk distibution for freetype,
the introductory blurb states:

  This directory contains a subset of the Freetype library (2.1.9) + some
  recent
  updates made to the cache subsystem.

  We only include enough of the distribution to provide the
  functionalities
  required by VTK.

  We would like to thank the Freetype team for distributing this library.
  http://www.freetype.org

Which confirms my thought that the cache subsystem is required.

I have come to the conclusion that the confusion from the matter arises
that freetype installed the ftcache.h header automatically, even when
ftcache.c is _not_ built.

I'm away this weekend, i'll do some testing with the cache subsystem
enabled in freetype sometime next week. I'll report back on stability.

If it turns out that it can't be enabled i'll have to make my port use
the built-in that comes with VTK and just get used to the linker 
problems (apart from that it works perfectly).

News, and either way the port should be forthcoming next week.

If there's anything else you'd like me to check, let me know.

> Matthieu Herrb

Regards,

-0-

-- 
Idaho state law makes it illegal for a man to give his sweetheart a box
of candy weighing less than fifty pounds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.