On 06.04.2011 16:37, MacArthur, Ian (SELEX GALILEO, UK) wrote:
I'm using a number of fonts, but you can try Musica 3.06 and Symbola
6.02 from:
http://users.teilar.gr/~g1951d/
If you don't have anything suitable...
I installed Musica 3.06, and now my hand-made html file shows the
correct glyphs in firefox (see appendix m.html).
Right now I can't spend more time with your test program, but I'll
take a look at it later. Meanwhile I had hacked something together,
using test/hello.cxx with this patch:
Index: test/hello.cxx
===================================================================
--- test/hello.cxx (Revision 8549)
+++ test/hello.cxx (Arbeitskopie)
@@ -31,7 +31,10 @@
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(340,180);
- Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
+ char *labl = ":\xf0\x9d\x85\xa0 \xf0\x9d\x85\xa1 \xf0\x9d\x85\xa2
\xf0\x9d\x85\xa3 \xf0\x9d\x85\xa4:\n"
+ ":\xED\x85\xA0 \xED\x85\xA1 \xED\x85\xA2 \xED\x85\xA3 \xED\x85\xA4:";
+ printf ("labl = %s\n",labl); fflush(stdout);
+ Fl_Box *box = new Fl_Box(20,40,300,100,labl);
box->box(FL_UP_BOX);
box->labelfont(FL_BOLD+FL_ITALIC);
box->labelsize(36);
This ought to show U+1D160 - U+1D164 and U+D160 - U+D164 for comparison
in the 2nd row. I did NOT load any fonts for this test, since Win7
seems to do a good job w/o it anyway. The 2nd row shows what is to be
expected with the old code, and indeed, I can see two identical rows
with the old code, whereas your code shows only placeholders
(rectangles) for non-drawable characters in the first row.
Maybe loading a font would help, I don't know. However, I can't test
more now...
Albrecht
Title: Unicode test
:𝅘𝅥𝅮 𝅘𝅥𝅯 𝅘𝅥𝅰 𝅘𝅥𝅱 𝅘𝅥𝅲:
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev