nanogui: Thread: Can't rotate built-in font


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Can't rotate built-in font
From: ####@####.####
Date: 29 Jan 2003 22:56:23 -0000
Message-Id: <OF140A3665.DB69A7B9-ON86256CBD.007B3797@bjservices.com>

Hello,
I'm using ADS strongarm and all is working fine until now.

I can print a built-in font no problem but after
GrSetFontRotation(valid_font_id , 150);
still no rotation. No errors returned. Anyone with a hint? Thanks
bv


Subject: Re: [nanogui] Can't rotate built-in font
From: "Greg Haerr" ####@####.####
Date: 30 Jan 2003 01:22:47 -0000
Message-Id: <009101c2c7fc$cf6eb420$220110ac@WasatchNewport>

> I can print a built-in font no problem but after
> GrSetFontRotation(valid_font_id , 150);
> still no rotation. No errors returned. Anyone with a hint? Thanks

Yes - there's no code in the built-in font subrenderer for rotating
font bitmaps.  This has only been implemented for the truetype
renderer, you might take a look at that implementation to give
you some ideas.  It uses some internal freetype lib routines
to help, IIRC.

Regards,

Greg

Subject: Re: [nanogui] Can't rotate built-in font
From: David Siebert ####@####.####
Date: 30 Jan 2003 15:59:26 -0000
Message-Id: <3E3949B3.4050201@eclipsecat.com>

How much space and proformance does using true type fonts take?

Greg Haerr wrote:

>>I can print a built-in font no problem but after
>>GrSetFontRotation(valid_font_id , 150);
>>still no rotation. No errors returned. Anyone with a hint? Thanks
>>    
>>
>
>Yes - there's no code in the built-in font subrenderer for rotating
>font bitmaps.  This has only been implemented for the truetype
>renderer, you might take a look at that implementation to give
>you some ideas.  It uses some internal freetype lib routines
>to help, IIRC.
>
>Regards,
>
>Greg
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>  
>


Subject: Re: [nanogui] Can't rotate built-in font
From: ####@####.####
Date: 30 Jan 2003 16:18:34 -0000
Message-Id: <OF7BFB6DD9.FA326121-ON86256CBE.00580860@bjservices.com>


My application is a "real-time" chart plotter so I will be adding font
rotation.
I use the linux font editor to build cool instrumentation fonts and then
compile into nano-X.
bv



Subject: Re: [nanogui] Can't rotate built-in font
From: "Greg Haerr" ####@####.####
Date: 30 Jan 2003 19:07:55 -0000
Message-Id: <018401c2c891$995a24b0$220110ac@WasatchNewport>

> How much space and proformance does using true type fonts take?

Truetype fonts are quite a bit more expensive to render 
than built-in or loaded pcf fonts, since the bitmap needs
to be computed from the vectors/hints for each character.
Some of this may not be cached as well.

Regards,

Greg
Subject: Re: [nanogui] Can't rotate built-in font
From: "Greg Haerr" ####@####.####
Date: 30 Jan 2003 19:09:36 -0000
Message-Id: <018501c2c891$d60bdcf0$220110ac@WasatchNewport>

> My application is a "real-time" chart plotter so I will be adding font
> rotation.

That would be great...  check out the transformation function
in font_freetype.c.  That code computes the baseline x,y
location for a string, the trickier part, handled in the freetype
lib, is building differently-sized bitmaps based on the rotation
angle.  This won't be the same as the original char bitmap size.

Regards,

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


Powered by ezmlm-browse 0.20.