nanogui: I have a DBCS font problem...
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