nanogui: I have a DBCS font problem...


Previous by date: 30 Jun 2004 12:31:57 +0100 Re: nano-X and framebuffer, Greg Haerr
Next by date: 30 Jun 2004 12:31:57 +0100 Re: flnx compile fail when LINK_APP_INTO_SERVER=Y, Greg Haerr
Previous in thread: 30 Jun 2004 12:31:57 +0100 I have a DBCS font problem..., Yen De-Wei
Next in thread:

Subject: Re: [nanogui] I have a DBCS font problem...
From: "Greg Haerr" ####@####.####
Date: 30 Jun 2004 12:31:57 +0100
Message-Id: <040001c45e94$7dc74a80$0903a8c0@censoft.com>

> I'm use convbdf to convert this file from bdf to c
> what i need do to make this font work?

1. "convbdf -f font.bdf" will create font.fnt
2. GrCreateFont(, ..."/path/to/font.fnt") to open font

The font can now be selected into a GC and used
with GrText(,...,MWTF_EUCJP or MWTF_UC16),
depending on the encoding of your font text.


> 
> and this bitmap font should have two color(gary & black),
> how to set every bit's colores?

GrSetGCForeground, GrSetGCBackground.

See the demos/nanox directory for examples, src/*.sh to run demos.

Regards,

Greg


Previous by date: 30 Jun 2004 12:31:57 +0100 Re: nano-X and framebuffer, Greg Haerr
Next by date: 30 Jun 2004 12:31:57 +0100 Re: flnx compile fail when LINK_APP_INTO_SERVER=Y, Greg Haerr
Previous in thread: 30 Jun 2004 12:31:57 +0100 I have a DBCS font problem..., Yen De-Wei
Next in thread:


Powered by ezmlm-browse 0.20.