It's been a tedious week I am wanting to find a solution for the
fonts
problem which are displayed as squares but now before I give up if
somebody could help me, i would be very much grateful. Let me
describe
my environment
I am porting Firefox on MIPS platform and have developed the cross
compiler for MIPS. I have compiled all the required packages and have
compiled mozilla as well. All of this is over DirectFB. But my
firefox
doesn't start at all. It somewhat hangs. I tried to step down to see
if other installed packages are working
I verified TestGTKEmbed. It displays the layout but no text
I verified gtk-demo. All texts are replaced by small squares
I verified pango/examples/.libs/cairoshape. This also replaced text
by
small squares.
All of the above 3 tests have the Pango warning ** failed to create
cairo scaled font...... &
Pang WARNING ** shaping failure........
The following is what I have done
1) Followed the steps given in https://wiki.mozilla.org/Mobile/DFBPorting
2) Have done with the help of the script and manual also
3)Have checked with higher and lower versions of fontconfig/cairo/
pango packages
4)Have copied all the fonts from the Linux machine to /usr/share/
fonts
of my target
5) Have run fc-cache -rvf
6) Have tried with different fonts followed by fc-cache -rvf
I have a strong suspicion on my target environment. It would be more
helpful if somebody could tell me what I have to copy from host to
target to avoid this error
Am totally stuck. Could any of you please guide me somewhere?
Zaks: I think you'll get better response from mozilla.dev.platform
> _______________________________________________
> dev-apps-firefox mailing list
> dev-apps...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-apps-firefox
> I verified TestGTKEmbed. It displays the layout but no text
> I verified gtk-demo. All texts are replaced by small squares
> I verified pango/examples/.libs/cairoshape. This also replaced text
> by
> small squares.
That the last two fail puts the problem somewhere outside the Mozilla
source code, right?
> All of the above 3 tests have the Pango warning ** failed to create
> cairo scaled font...... &
> Pang WARNING ** shaping failure........
Normally these error messages come with a description of the font
that was asked for. Did you somehow adapt your Pango port to not contain
that any more or did you just cut them in your message? Actually, I
think these messages originate from pango-cairo.
Perhaps it's one of the other underlying libs that is failing. Did you
take a closer look at FreeType? Try running the demos that come with
it, like ftstring or ftview. Also, does the testsuite that comes with
the cairo tarball run or do the font testcases fail there, too?
Peter.
Right, this is a User-2-User group for basic user setup and uaseage issues.
To the OP, We frown on cross-posting by users of the Mozilla server. When
It is done, the OP should set one of the groups as Followup To: so all
replys go to one group only.
--
Ron K.
Who is General Failure, and why is he searching my HDD?
Kernel Restore reported Major Error used BSOD to msg the enemy!
Peter,
> That the last two fail puts the problem somewhere outside the Mozilla
> source code, right?
In fact, i am trying to run firefox on MIPS. I have compiled the code.
That doesn't run. I started debugging down to GTK. I got these
warnings. I narrowed down the problem to Pango and tried to run the
cairoshape sample application in examples/.libs. I get these Pango
Warnings there too and with only squares in the image.
> Normally these error messages come with a description of the font
> that was asked for. Did you somehow adapt your Pango port to not contain
> that any more or did you just cut them in your message? Actually, I
> think these messages originate from pango-cairo.
In fact, I had cut these messages. I am pasting the actual message as
below
(process:1182): Pango-WARNING **: shaping failure, expect ugly output.
shape-eng
ine='BasicEngineFc', font='Serto Batnan 12', text='The GNOME project
provides tw
o things:'
(process:1182): Pango-WARNING **: shaping failure, expect ugly output.
shape-eng
ine='ArabicEngineFc', font='Serto Batnan 12', text='?????? ????? '
I have verified with different combinations of fonts like TTF/OTF/
Type1/bitstream-vera etc. The above messages get modfied to that font.
> Perhaps it's one of the other underlying libs that is failing. Did you
> take a closer look at FreeType? Try running the demos that come with
> it, like ftstring or ftview. Also, does the testsuite that comes with
> the cairo tarball run or do the font testcases fail there, too?
I am doing this over DirectFB. DirectFB examples run without any
problem. These use free type for display. That is why I have closed
the option of exploring freetype.
I agree that tha problem is with pango-cairo. Could you please through
some light as to where I could go wrong?
> I am doing this over DirectFB. DirectFB examples run without any
> problem. These use free type for display. That is why I have closed
> the option of exploring freetype.
OK.
> I agree that tha problem is with pango-cairo. Could you please through
> some light as to where I could go wrong?
No, I am not experienced enough with pango and know nothing of DirectFB.
But perhaps someone on the pango list can give you a hint. See
<http://www.pango.org/Contributing>. Or try the cairo list, see
<http://cairographics.org/lists/>.
Peter.
This are all expected given the first error that says Pango warning **
failed to create
cairo scaled font....
I committed some more debugging messages to pango trunk. If you can
run that and send me the debug output. File it as a bug at
bugzilla.gnome.org.
behdad