On Fri, Mar 26, 2004 at 02:03:27PM +0100, Groeting Claus ICM Bocholt wrote:
> Hi All !
>
> I have a simple question regarding deifferent fonts inside the canvas
> widget...
> When I try to use pgText() in the canvas widget with different font setup
> (using pgSetFont(gc,pgNewFont("Times",..) or
> pgSetFont(gc,pgNewFont("Courier",..))
> I can still see the same font. So, when the canvas widget does only support
> the default font,
The canvas does let you change the font. Several of the included apps do this,
try to grep the 'apps' directory for pgSetFont. I'd guess what's happening
is that the default font is still the closest match to the specification
you're giving pgNewFont. Make sure the font you're asking for actually exists,
and try using that font elsewhere, like in a label widget, to give you another
way of seeing what font you're actually allocating.
> how
> can I set up the default, or is fix to Helvisia ?)
It depends on the font engine. If you're using the BDF engine, you'll have to
edit the .fi files in the server/font directory. Add 'default' to the
STYLE= line on the font you want to be default, make sure it isn't present
in the other .fi files.
If you're using a better font engine like freetype, there are configuration
variables to set the defaults. Check README.configfile for more info.
--Micah
--
Only you can prevent creeping featurism!
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel