> I would like to display some Chinese fonts with Fluid 1.3.x 
> but it does not work. It only shows square boxes.

In a sense, that does mean it is working.
What is happening is that the font that is selected does not include the
necessary glyphs for the characters being displayed - so the font
renderer draws the box to mark where the glyph should be, but does not
know what to draw for the glyph...

Unfortunately, the UTF8-isation of the fltk code-base has not reached
the point where fluid can support setting arbitrary fonts for your
widgets.
You can set arbitrary fonts in code, of course, just not via fluid yet,
I'm afraid.

See the utf8 example in the test folder for some examples of using other
fonts, and also Greg's example
http://www.seriss.com/people/erco/fltk/#UTF8-Japanese of doing this.

> Then, I would like to compile and display these Chinese fonts 
> and would like to know which library I should use while 
> compiling the software.

I'm not sure I understand what you are asking for here - once you have
selected a suitable font, it pretty much ought to Just Work.

What platform are you on? On OSX and Vista, there's a fair chance that
the font rendering engine will automatically fill in any missing glyphs
for you, but with our current implementation on *nix and
(pre-vista)windows you'll need to set a suitable font explicitly
yourself.

Again, Greg's example shows how to go about doing that.

The utf8 demo program, if run from a shell, will print to stdout the
"fltk-name" of the selected fonts as you run it, so you can use that as
a quick way of sorting through the fonts that are installed on your
system and finding one that has the necessary glyphs for your text.

Hope that helps (and makes some sort of sense!)
-- 
Ian


SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to