nanogui: Thread: nano-X, freetype and font caches?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: nano-X, freetype and font caches?
From: Steven Scholz ####@####.####
Date: 19 Aug 2005 09:37:19 +0100
Message-Id: <43059A39.20007@imc-berlin.de>

Hi there,

I am using nano-X with freetype-2.1.4 on an small embedded system.

IIUC then when a font is used for the first time, the font file is read and all 
the characters are rendered by freetype into small bitmaps.

Unfortunatly this takes very very long. Especially when I am using several fonts 
at the same time. (Once the fonts are loaded its fast.)

Now my quetsion is if we could use some kind of cache mechanism in nano-X. I 
thought freetype knows about font chaching...

Thanks!

-- 
Steven
Subject: Re: [nanogui] nano-X, freetype and font caches?
From: "Greg Haerr" ####@####.####
Date: 23 Aug 2005 18:16:21 +0100
Message-Id: <033901c5a7ff$27298a20$6401a8c0@winXP>

: Now my quetsion is if we could use some kind of cache mechanism in nano-X.
I
: thought freetype knows about font chaching...

Nano-X doesn't cache any fonts (except of course converted
.bdf fonts linked internally) directly.  There have been a couple
cases of extra code added to cache freetype fonts for speed.
I have an older version for freetype 1.x.  Gabrielle contributed
all sorts of changes for freetype 2.x with his win32 changes,
including font caching, which are included in CVS.  However,
I had to disable the cache code, since some applications
segfaulted when enabled.  There hasn't been time to debug
this contributed code.

Regards,

Greg

Subject: Re: [nanogui] nano-X, freetype and font caches?
From: Steven Scholz ####@####.####
Date: 24 Aug 2005 09:07:45 +0100
Message-Id: <430C2ACC.8080703@imc-berlin.de>

Greg Haerr wrote:
> : Now my quetsion is if we could use some kind of cache mechanism in nano-X.
> I
> : thought freetype knows about font chaching...
> 
> Nano-X doesn't cache any fonts (except of course converted
> .bdf fonts linked internally) directly.  There have been a couple
> cases of extra code added to cache freetype fonts for speed.
> I have an older version for freetype 1.x.  Gabrielle contributed
> all sorts of changes for freetype 2.x with his win32 changes,
> including font caching, which are included in CVS.  However,
> I had to disable the cache code, since some applications
> segfaulted when enabled.  There hasn't been time to debug
> this contributed code.

Thanks.

But my understanding was correct that when a truetype font is loaded
(i.ew use for the first time in an application) then the font file is
loaded and all character in that font are rendered into ram. So later
the rendered images are just copied, right?

--
Steven
Subject: Re: [nanogui] nano-X, freetype and font caches?
From: Steven Scholz ####@####.####
Date: 9 Dec 2005 18:22:10 +0000
Message-Id: <4399CB2A.4030505@imc-berlin.de>

Greg,

> : Now my quetsion is if we could use some kind of cache mechanism in nano-X.
> I
> : thought freetype knows about font chaching...
> 
> Nano-X doesn't cache any fonts (except of course converted
> .bdf fonts linked internally) directly.  There have been a couple
> cases of extra code added to cache freetype fonts for speed.
> I have an older version for freetype 1.x.  Gabrielle contributed
> all sorts of changes for freetype 2.x with his win32 changes,
> including font caching, which are included in CVS.  However,
> I had to disable the cache code, since some applications
> segfaulted when enabled.  There hasn't been time to debug
> this contributed code.

Any news on freetype 2 improvements? Caching? Speedup?

--
Steven
Subject: Re: [nanogui] nano-X, freetype and font caches?
From: "Greg Haerr" ####@####.####
Date: 9 Dec 2005 19:50:27 +0000
Message-Id: <0cbf01c5fcf9$2eff59b0$6401a8c0@gregnewport>

>> Gabrielle contributed
> > all sorts of changes for freetype 2.x with his win32 changes,
> > including font caching, which are included in CVS.  However,
> > I had to disable the cache code, since some applications
> > segfaulted when enabled.  There hasn't been time to debug
> > this contributed code.
> 
> Any news on freetype 2 improvements? Caching? Speedup?

There's no development occuring for FT2, to my knowledge.
The CVS version contains Gabrielle's enhancements to FT2,
but like I said I disabled his caching by default, since his
win32 demo apps segfault with it compiled in.  I didn't have
time to debug Gabrielle's submission.  Someone needs to
to find the problem with the cache/speedup.  If you want
to get involved, I'll certainly give advice :)

I am still using FT1...

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.