> > Note that I still can't persuade XP to handle surrogate
> pairs nicely anyway...
>
> That's bad, but maybe it's only a font issue?
OK, it just occurred to me... Can others try the test code below, and
report the outcomes...
On Vista and Linux (with XFT) I see:
1: If the Musica font is installed, it works.
2: If the Musica font is *not* installed I see 5 "glyph replacement"
boxes for the surrogate pairs on the second line.
On XP I see:
3: If the Musica font is installed, it doesn't display the surrogate
pairs and I see *10* "glyph replacement" boxes for the surrogate pairs
on the second line.
4: If the Musica font is *not* installed, well, see (3) above - 10 fails
for 5 glyphs...
-----------------
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(340,180);
const char *labl = "Hello World :\xc2\xb1:\xb1:\n"
":\xf0\x9d\x85\xa0 \xf0\x9d\x85\xa1 \xf0\x9d\x85\xa2 \xf0\x9d\x85\xa3
\xf0\x9d\x85\xa4:";
Fl_Box *box = new Fl_Box(5, 5, 330, 170, labl);
/* setup the extra font */
Fl::set_font(FL_SYMBOL, " Musica");
box->box(FL_UP_BOX);
box->labelfont(FL_SYMBOL);
box->labelsize(24);
window->end();
window->show(argc, argv);
return Fl::run();
}
/* end of file */
SELEX Galileo Ltd
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