Hi...
This is my first comment here, so sorry for any error in procedure or personal
action on the walking.
I have a linux host, where my target is a Cross Compiling for ARM embedded
system (Cross compilation to target ARM using fltk 1.3_rxxxx). All installation
and compile of the FLTK happens naturally and without error. It made by the
correctly toolchain.
When i compile a simple code for the Linux x86 host locally (eg: Hello World),
the widget is displayed normally and without font erros,
but when I cross compile the same code for ARM, and i run the binary on
embedded device (the ARM board) the fonts are displayed with strange characters
and spacing between letters.
I have tested with FLTK-2 and the error does not happen. I believe that because
of the treatment of FLTK-2 with loads of fonts, it should not exist. However, i
wish to eliminate this problem with fltk 1.3_rxxxxe and find the cause of the
situation about it.
Testing Code
============================================================================
int main(void)
{
Fl_Window *window = new Fl_Window(300,200);
window->begin();
window->label("Making Test... ");
Fl_Box *box = new Fl_Box(20,40,260,100,"AA-aa-BB-bb");
box->box(FL_UP_BOX);
window->end();
window->show();
return Fl::run();
}
============================================================================
Observation:
- The libX11 library compiled for ARM are present in the embedded system with a
custom Xorg.
- The device uses Framebuffer video driver (NOT DirectFrameBuffer).
- I do not make use of XFT.
- On device (board), there are no fonts or libraries locally on the device
system.
- The compilation of fltk, was made with flags: --disable-gl --disable-xdbe
--disable-xft --enable-shared
- On the enbedded device, i too use Xorg and libX11 shared library,
libfreetype, libXfont, libXau and libXdmcp.
- The compilation of code was made com shared library libX11 (-lX11).
- When i change the string to empty spaces " ", the strange characteres
are displayed too.
* This problem happen, because had no fonts on the locally embedded system, at
runtime ?
* I thought about encoding, but this would not affect the local compilation x86
too ?
* This is a normal situation, using a compilation libfltk and libX11 with
uClibc ?
I'll continue with the tests, noting any explanation about it here.
Thanks.
[]s..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk