nanogui: freetype2 issue GrText corrupted packet


Previous by date: 26 Jul 2011 23:14:55 -0000 Re: FLTK font question, Georg Potthast
Next by date: 26 Jul 2011 23:14:55 -0000 Re: freetype2 issue GrText corrupted packet, Greg Haerr
Previous in thread:
Next in thread: 26 Jul 2011 23:14:55 -0000 Re: freetype2 issue GrText corrupted packet, Greg Haerr

Subject: freetype2 issue GrText corrupted packet
From: Larry Samuels ####@####.####
Date: 26 Jul 2011 23:14:55 -0000
Message-Id: <5408EE296006CF469F02ED2DD97B0A9A439A7BF6@SERVER.aerobicsinc.net>

I am cross compiling freetype2 and microwindows for an ARM target.

When I try fontdemo to load times.ttf font, I get a corrupted packet error.
Bad  read block -1, 104.
Segmentation fault ./nano-X
The nxeyes application on the ARM target works.

I am using freetype2.3.9  and microwindows 0.92.  Freetype2 was cross-compiled for the ARM target.
On the target:
I copied times.ttf into the fonts/truetype directory.
I have copied the libnano-X.a and libnano-X.so into the /lib directory
I have copied the nano-X and fontdemo into the bin directory.

When I compile for X11 target and use X11 targeted freetype2 library, fontdemo runs fine.

The issue is in the line:
  GrText(w,gc,0,y,buf,-1,GR_TFASCII|GR_TFTOP);
When I remark that line and GrGetFontInfo line out, I do not get segmentation fault.

Previoulsy I used microwindows 0.91 and freetype 2.0.9 and fontdemo with ttf fonts ran fine on the ARM target.

The question of text encoding was brought up when there were similar issues.
What text encoding do I use for freetype 2.3.9,  microwindows 0.92,  times.ttf?
Any Idea how to toubleshoot the segmentation fault for GrText?

Thanks for the help.


Previous by date: 26 Jul 2011 23:14:55 -0000 Re: FLTK font question, Georg Potthast
Next by date: 26 Jul 2011 23:14:55 -0000 Re: freetype2 issue GrText corrupted packet, Greg Haerr
Previous in thread:
Next in thread: 26 Jul 2011 23:14:55 -0000 Re: freetype2 issue GrText corrupted packet, Greg Haerr


Powered by ezmlm-browse 0.20.