nanogui: Thread: freetype 2.2.1


[<<] [<] Page 1 of 1 [>] [>>]
Subject: freetype 2.2.1
From: Reza Roboubi ####@####.####
Date: 7 May 2007 02:15:03 +0100
Message-Id: <463E7C03.8080900@parvan.net>

Hi guys,

I'm having trouble compiling with the freetype2 installed on my Ubuntu 
edgy box.  Not sure what version, but nano-x detects it as freetype 2.2.1.

Also, a more basic question about X:  What _are_ fonts for anyway? 
Don't "fltk" or other apps just use the font library directly, then 
render the resulting image onto an X display?  Does X _need_ fonts?

Thanks so much.

Reza.
Subject: Re: [nanogui] freetype 2.2.1
From: "Greg Haerr" ####@####.####
Date: 10 May 2007 14:42:00 +0100
Message-Id: <023e01c79308$ecc71540$2f01a8c0@HaydenLake>

: I'm having trouble compiling with the freetype2 installed on my Ubuntu
: edgy box.  Not sure what version, but nano-x detects it as freetype 2.2.1.

The Freetype 2 implementation requires a certain version or later of
Freetype.  See src/engine/font_freetype2.c for details.  IIRC it
was tested with v2.1.3, and there are some fancy #defines for
checking for later versions. Without seeing your errors I'm only
guessing that there some structure member name changes.


:
: Also, a more basic question about X:  What _are_ fonts for anyway?
: Don't "fltk" or other apps just use the font library directly, then
: render the resulting image onto an X display?  Does X _need_ fonts?

Fonts are for quickly drawing bitmaps which humans are
accustomed to seeing as language glyphs.

FLTK, when running under X11, uses the X11 font library
directly, which NXLIB handles the conversion to nano-X.
When running FLNX, the font code was rewritten for
direct nano-X use.

X doesn't need fonts, but usually has a builtin font so it
can at least display something when a text output API
is called (nano-X is the same way).

Regards,

Greg 

Subject: Re: [nanogui] freetype 2.2.1
From: "Greg Haerr" ####@####.####
Date: 11 May 2007 03:50:01 +0100
Message-Id: <03d501c79376$f2a2ad80$2f01a8c0@HaydenLake>

> Yes, you're absolutely right.  The error is:
/home/reza/tmp/downloads/microwindows-0.91/src/engine/font_freetype2.c:
In function ‘freetype2_createfont_internal’:
/home/reza/tmp/downloads/microwindows-0.91/src/engine/font_freetype2.c:618:
error: ‘FTC_ImageTypeRec’ has no member named ‘font’

Reza - if you get this working, can you send me a patch?
It would be nice to have a version that works with the
some of the latest Linux distros, it appears that Freetype
has been reving and we've not kept up.

Regards,

Greg



Subject: Re: [nanogui] freetype 2.2.1
From: Reza Roboubi ####@####.####
Date: 11 May 2007 00:52:21 +0100
Message-Id: <4643AFB4.5090109@parvan.net>

Greg Haerr wrote:
> : I'm having trouble compiling with the freetype2 installed on my Ubuntu
> : edgy box.  Not sure what version, but nano-x detects it as freetype 2.2.1.
> 
> The Freetype 2 implementation requires a certain version or later of
> Freetype.  See src/engine/font_freetype2.c for details.  IIRC it
> was tested with v2.1.3, and there are some fancy #defines for
> checking for later versions. Without seeing your errors I'm only
> guessing that there some structure member name changes.

Yes, you're absolutely right.  The error is:
/home/reza/tmp/downloads/microwindows-0.91/src/engine/font_freetype2.c: 
In function ‘freetype2_createfont_internal’:
/home/reza/tmp/downloads/microwindows-0.91/src/engine/font_freetype2.c:618: 
error: ‘FTC_ImageTypeRec’ has no member named ‘font’

> 
> 
> :
> : Also, a more basic question about X:  What _are_ fonts for anyway?
> : Don't "fltk" or other apps just use the font library directly, then
> : render the resulting image onto an X display?  Does X _need_ fonts?
> 
> Fonts are for quickly drawing bitmaps which humans are
> accustomed to seeing as language glyphs.
> 
> FLTK, when running under X11, uses the X11 font library
> directly, which NXLIB handles the conversion to nano-X.
> When running FLNX, the font code was rewritten for
> direct nano-X use.
> 
> X doesn't need fonts, but usually has a builtin font so it
> can at least display something when a text output API
> is called (nano-X is the same way).

Thanks Greg.  I read the code and found out that this is what's going 
on.  I appreciate your response.

Reza.

> 
> Regards,
> 
> Greg 
> 
> 

Subject: Re: [nanogui] freetype 2.2.1
From: Reza Roboubi ####@####.####
Date: 11 May 2007 04:08:40 +0100
Message-Id: <4643DDEB.7040509@parvan.net>

Greg Haerr wrote:
>> Yes, you're absolutely right.  The error is:
> /home/reza/tmp/downloads/microwindows-0.91/src/engine/font_freetype2.c:
> In function ‘freetype2_createfont_internal’:
> /home/reza/tmp/downloads/microwindows-0.91/src/engine/font_freetype2.c:618:
> error: ‘FTC_ImageTypeRec’ has no member named ‘font’
> 
> Reza - if you get this working, can you send me a patch?
> It would be nice to have a version that works with the
> some of the latest Linux distros, it appears that Freetype
> has been reving and we've not kept up.

Greg, I promise to do that.  The trouble is that I'm extremely busy with 
several things at this time.  Three other embedded options for us are 
Xorg with fbdev, fltk porting, or our own tiny UI for now.

I'm not sure what we'll do, but you have my promise to contribute if I 
work at it (remind me if you catch me forgetting! :-)

Thank you Greg.

Reza.
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.