1. I tried "fltk2-config --compile mycode.cxx" and got the correct display. So, the problem is solved. What left to answer is how did that happen. I have some interesting test result. Please read the following.
2. I always built your code using: "g++ -o fltkhello1 fltkhello1.cxx -I/usr/local/include -L/local/lib -lfltk2 -lXext -lXft -lX11 -lXi -lm". No make file was used. With my faulty compile command, I also looped to test every font installed in my system using the error checking code. The result is quite strange. Some are OK, others not (The output as follows). That's the most interesting part. How can it happen? If I use "fltk2-config --compile mycode.cxx", Every font is OK. Bitstream Charter font installed Font error: Century Schoolbook L no installed Courier 10 Pitch font installed Font error: DFPLiSong-Md no installed Font error: DejaVu Sans Mono no installed Font error: DejaVu Sans no installed Font error: DejaVu Serif no installed Font error: Dingbats no installed Font error: Kochi Gothic no installed Font error: Liberation Mono no installed Font error: Liberation Sans no installed Font error: Liberation Serif no installed Font error: Microsoft JhengHei no installed Font error: Nimbus Mono L no installed Font error: Nimbus Roman No9 L no installed Font error: Nimbus Sans L no installed Font error: OpenSymbol no installed Font error: Sazanami Mincho no installed Font error: URW Bookman L no installed Font error: URW Chancery L no installed Font error: URW Gothic L no installed Font error: URW Palladio L no installed Font error: iLiHei no installed On Fri, Jul 17, 2009 at 6:51 PM, MacArthur, Ian (SELEX GALILEO, UK) < [email protected]> wrote: > > I added the error check and found that FLTK2 didn't found > > "Kochi Gothic" font. > > I tried to replace "fltk::Font *f = fltk::font("Kochi Gothic", 0);" > > with other fonts that's surely installed in my system, such as > > "DejaVu Serif" and other listed by fc-list. > > The result is the same - FLTK2 just don't recognize them. > > But FLTK example can recognize these font. > > What can be the cause? > > I do not know - this sounds very strange. > > Are you still building the test program with your Makefile? Or did you > try building it just using fltk2-config... > > fltk2-config --compile mycode.cxx > > I ask because I wonder if there is some library linking order problem or > something going on here - using fltk2-config to do the build should give > the same result as the fltk test programs themselves... > > Also, might be worth trying a fltk-1.3 version and see what it does, for > comparison. I know that both Greg and myself have succesfully generated > code that displays CJK glyphs using fltk-1.3, so that definitley > works... > > > > > > > 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-dev mailing list > [email protected] > http://lists.easysw.com/mailman/listinfo/fltk-dev >
_______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
