[webkit-dev] Issues with font rendering on DirectFB build

2008-02-08 Thread Srinivas Rao M Hamse
Hi,
 Compiled the latest WebKit-r30082 for both X11 and DirectFB targets on
Linux PC.

The X11 worked fine but the build with Directfb showed the font rendering
problem. Has anyone faced this problem ? Am i missing out anything trivial
here ?

I have posted the screen snapshot at :
http://msrinirao.blogspot.com/search/label/webkit

regards,
Srinivas Rao. M

-- 
Srinivas Rao M Hamse 
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Issues with font rendering on DirectFB build

2008-02-08 Thread Rachel Bassett
Hi,

I'm working on a cross compiled build using DirectFB,
gtk+, WebKit build too, however I get no fonts at all!
I get images, buttons, etc but no text. I've tested
gtk+ with gtk-demo and fonts appear correctly there,
I've rebuilt my fontconfig cache and checked (using
strace) all the font files get found and opened as
expected, however I see no text.

Any hints welcome.

Thanks
Rachel



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-09 Thread Mike Emmel
Generally this means you did not build pango with the pangocairo
backend or possible cairo without the directfb backend. The next cause
is incorrect set up or missing fonts for fontconfig.

You should try some test cairo programs.  I've built it and it runs
just fine I have a few patchs I need to submit I had to add to make it
work.   The changes I had to make may also be causing you problems.
Not sure if they are "obvious". I've got to fly from Berlin to LA so
ping Alp Toker or me next week and he should have all the patches that
result in a functional gtk/directfb build.

On Feb 8, 2008 6:37 AM, Rachel Bassett <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm working on a cross compiled build using DirectFB,
> gtk+, WebKit build too, however I get no fonts at all!
> I get images, buttons, etc but no text. I've tested
> gtk+ with gtk-demo and fonts appear correctly there,
> I've rebuilt my fontconfig cache and checked (using
> strace) all the font files get found and opened as
> expected, however I see no text.
>
> Any hints welcome.
>
> Thanks
> Rachel
>
>
>
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-11 Thread Rachel Bassett
Thanks for the responses, however I don't think it is
the same. Looking at the google homepage image (on the
link you sent), the text "Web Images News" etc
appears, as well as the blue highlighted links to the
right and below the search box. I don't get any of
that - just images, the search box and the buttons.

I naively thought that if I could run gtk-demo
successfully and see all the fonts it displays, then I
assumed I had correctly built everything needed. I
have also checked my config.log files for both pango
and cairo and they indeed show I have built cairo for
directfb and pango for cairo. I had initial problems
with gtk-demo not displaying fonts, but that was a
pango problem and now solved.

So I assuming WebKit does something slightly different
but as yet I don't understand what.

My current thoughts are that its possibly path related
- I'm working through the output from strace to check
the differences between running WebKit native on a
Linux PC and WebKit cross compiled on my mips
hardware.

Do I need a gtkrc to point at where fonts / styles
are?

Many thanks
Rachel

--- Srinivas Rao M Hamse <[EMAIL PROTECTED]> wrote:

> I am posting the same question to everybody on the
> list. Any updates on this
> ?
> regards,
> Srinivas Rao. M
> 
> 
> 
> 
> 
> On Feb 11, 2008 10:08 AM, Sriram Neelakandan
> <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi
> >
> > Are u seeing problems similar to this :
> >
> > http://msrinirao.blogspot.com/search/label/webkit
> >
> > If u notice closely the pictures attached have
> tiny fonts.
> >
> > Have u found a solution to your problem ?
> > Just wondering if both of you could be seeing the
> same problem.
> >
> > regards
> > Sriram
> >
> >
> >
> > On Feb 8, 2008 8:07 PM, Rachel Bassett
> <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I'm working on a cross compiled build using
> DirectFB,
> > > gtk+, WebKit build too, however I get no fonts
> at all!
> > > I get images, buttons, etc but no text. I've
> tested
> > > gtk+ with gtk-demo and fonts appear correctly
> there,
> > > I've rebuilt my fontconfig cache and checked
> (using
> > > strace) all the font files get found and opened
> as
> > > expected, however I see no text.
> > >
> > > Any hints welcome.
> > >
> > > Thanks
> > > Rachel
> > >
> > >
> > >
> > > 
>
___
> > > Yahoo! Answers - Got a question? Someone out
> there knows the answer. Try
> > > it
> > > now.
> > > http://uk.answers.yahoo.com/
> > > ___
> > > webkit-dev mailing list
> > > webkit-dev@lists.webkit.org
> > >
> http://lists.webkit.org/mailman/listinfo/webkit-dev
> > >
> >
> >
> >
> > --
> > Sriram Neelakandan
> > Author - Embedded Linux System Design And
> Development (
> > http://tinyurl.com/2doosu)
> 
> 
> 
> 
> -- 
> Srinivas Rao M  Hamse
> 



  __
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-10 Thread Srinivas Rao M Hamse
I am posting the same question to everybody on the list. Any updates on this
?
regards,
Srinivas Rao. M





On Feb 11, 2008 10:08 AM, Sriram Neelakandan <[EMAIL PROTECTED]>
wrote:

> Hi
>
> Are u seeing problems similar to this :
>
> http://msrinirao.blogspot.com/search/label/webkit
>
> If u notice closely the pictures attached have tiny fonts.
>
> Have u found a solution to your problem ?
> Just wondering if both of you could be seeing the same problem.
>
> regards
> Sriram
>
>
>
> On Feb 8, 2008 8:07 PM, Rachel Bassett <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I'm working on a cross compiled build using DirectFB,
> > gtk+, WebKit build too, however I get no fonts at all!
> > I get images, buttons, etc but no text. I've tested
> > gtk+ with gtk-demo and fonts appear correctly there,
> > I've rebuilt my fontconfig cache and checked (using
> > strace) all the font files get found and opened as
> > expected, however I see no text.
> >
> > Any hints welcome.
> >
> > Thanks
> > Rachel
> >
> >
> >
> >  ___
> > Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> > it
> > now.
> > http://uk.answers.yahoo.com/
> > ___
> > webkit-dev mailing list
> > webkit-dev@lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo/webkit-dev
> >
>
>
>
> --
> Sriram Neelakandan
> Author - Embedded Linux System Design And Development (
> http://tinyurl.com/2doosu)




-- 
Srinivas Rao M  Hamse
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-12 Thread Sriram Neelakandan
Hi Mike,

Even I found the same problem. tiny fonts on the FB screen !

I added some prints and noticed that the fontDescription.computedSize() was
1.0 for some reason. !!

so i added the following lines in the constructor of
WebCore/platfrom/graphics/gtk/FontPlatformDataGtk.cpp

*** FontPlatformDataGtk.cpp.org 2008-02-05 13:59:50.0 +0530
--- FontPlatformDataGtk.cpp 2008-02-12 16:29:20.0 +0530
*** FontPlatformData::FontPlatformData(const
*** 47,56 
--- 47,64 
  int fcslant = FC_SLANT_ROMAN;
  int fcweight = FC_WEIGHT_NORMAL;
  float fcsize = fontDescription.computedSize();
+ if(fontDescription.computedSize() == 1.0)
+ {
+ /*fontDescription.setComputedSize(16.0);*/
+ m_fontDescription.setComputedSize(16.0);
+ fcsize = 16.0;
+ }
+
  if (fontDescription.italic())
  fcslant = FC_SLANT_ITALIC;
  if (fontDescription.bold())
  fcweight = FC_WEIGHT_BOLD;

This has temporarily fixed the problem.

I donot know the cause why the fontsize is computed as 1.0 !!

-- 
Sriram Neelakandan
Author - Embedded Linux System Design And Development (
http://tinyurl.com/2doosu)

On Feb 13, 2008 9:32 AM, Mike Emmel <[EMAIL PROTECTED]> wrote:

> Hi Rachel just got my directfb build working on the latest head.
>
> What I'm seeing is that fonts are scaled down to thin lines. And other
> scaling issues.
>
> I'm assuming this is what you may be seeing.
>
> This is only under the directfb/gtk build not the webkit one.
> Also I looked over my changes and they are related mainly to not having
> X11
> installed at all you probably can build without them but you would
> crash eventually
> in a few places.
>
> On Feb 11, 2008 3:43 AM, Rachel Bassett <[EMAIL PROTECTED]>
> wrote:
> > Thanks for the responses, however I don't think it is
> > the same. Looking at the google homepage image (on the
> > link you sent), the text "Web Images News" etc
> > appears, as well as the blue highlighted links to the
> > right and below the search box. I don't get any of
> > that - just images, the search box and the buttons.
> >
> > I naively thought that if I could run gtk-demo
> > successfully and see all the fonts it displays, then I
> > assumed I had correctly built everything needed. I
> > have also checked my config.log files for both pango
> > and cairo and they indeed show I have built cairo for
> > directfb and pango for cairo. I had initial problems
> > with gtk-demo not displaying fonts, but that was a
> > pango problem and now solved.
> >
> > So I assuming WebKit does something slightly different
> > but as yet I don't understand what.
> >
> > My current thoughts are that its possibly path related
> > - I'm working through the output from strace to check
> > the differences between running WebKit native on a
> > Linux PC and WebKit cross compiled on my mips
> > hardware.
> >
> > Do I need a gtkrc to point at where fonts / styles
> > are?
> >
> > Many thanks
> > Rachel
> >
> >
> > --- Srinivas Rao M Hamse <[EMAIL PROTECTED]> wrote:
> >
> > > I am posting the same question to everybody on the
> > > list. Any updates on this
> > > ?
> > > regards,
> > > Srinivas Rao. M
> > >
> > >
> > >
> > >
> > >
> > > On Feb 11, 2008 10:08 AM, Sriram Neelakandan
> > > <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Hi
> > > >
> > > > Are u seeing problems similar to this :
> > > >
> > > > http://msrinirao.blogspot.com/search/label/webkit
> > > >
> > > > If u notice closely the pictures attached have
> > > tiny fonts.
> > > >
> > > > Have u found a solution to your problem ?
> > > > Just wondering if both of you could be seeing the
> > > same problem.
> > > >
> > > > regards
> > > > Sriram
> > > >
> > > >
> > > >
> > > > On Feb 8, 2008 8:07 PM, Rachel Bassett
> > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I'm working on a cross compiled build using
> > > DirectFB,
> > > > > gtk+, WebKit build too, however I get no fonts
> > > at all!
> > > > > I get images, buttons, etc but no text. I've
> > > tested
> > > > > gtk+ with gtk-demo and fonts appear correctly
> > > there,
> > > > > I've rebuilt my fontconfig cache and checked
> > > (using
> > > > > strace) all the font files get found and opened
> > > as
> > > > > expected, however I see no text.
> > > > >
> > > > > Any hints welcome.
> > > > >
> > > > > Thanks
> > > > > Rachel
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> > ___
> > > > > Yahoo! Answers - Got a question? Someone out
> > > there knows the answer. Try
> > > > > it
> > > > > now.
> > > > > http://uk.answers.yahoo.com/
> > > > > ___
> > > > > webkit-dev mailing list
> > > > > webkit-dev@lists.webkit.org
> > > > >
> > > http://lists.webkit.org/mailman/listinfo/webkit-dev
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Sriram Neelakandan
> > > > Author - Embedded Linux System Design And
> > > Development (
> > > > ht

Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-12 Thread Mike Emmel
Hmm this is a fontconfig issue looks like.

I'll trace it for a bit weird that its only in the directfb build same
fontconfig for X11.
Thanks for the work around.

On Feb 12, 2008 8:32 PM, Sriram Neelakandan
<[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> Even I found the same problem. tiny fonts on the FB screen !
>
> I added some prints and noticed that the fontDescription.computedSize() was
> 1.0 for some reason. !!
>
> so i added the following lines in the constructor of
>  WebCore/platfrom/graphics/gtk/FontPlatformDataGtk.cpp
>
> *** FontPlatformDataGtk.cpp.org 2008-02-05 13:59:50.0 +0530
>  --- FontPlatformDataGtk.cpp 2008-02-12 16:29:20.0 +0530
>  *** FontPlatformData::FontPlatformData(const
>  *** 47,56 
>  --- 47,64 
>int fcslant = FC_SLANT_ROMAN;
>int fcweight = FC_WEIGHT_NORMAL;
>float fcsize = fontDescription.computedSize();
>  + if(fontDescription.computedSize() == 1.0)
>  + {
>  + /*fontDescription.setComputedSize(16.0);*/
>  + m_fontDescription.setComputedSize(16.0);
>  + fcsize = 16.0;
>  + }
>  +
>if (fontDescription.italic())
>fcslant = FC_SLANT_ITALIC;
>if (fontDescription.bold())
>fcweight = FC_WEIGHT_BOLD;
>
> This has temporarily fixed the problem.
>
>  I donot know the cause why the fontsize is computed as 1.0 !!
>
>  --
>
> Sriram Neelakandan
> Author - Embedded Linux System Design And Development
> (http://tinyurl.com/2doosu)
>
>
>
> On Feb 13, 2008 9:32 AM, Mike Emmel <[EMAIL PROTECTED]> wrote:
> > Hi Rachel just got my directfb build working on the latest head.
> >
> > What I'm seeing is that fonts are scaled down to thin lines. And other
> > scaling issues.
> >
> > I'm assuming this is what you may be seeing.
> >
> > This is only under the directfb/gtk build not the webkit one.
> > Also I looked over my changes and they are related mainly to not having
> X11
> > installed at all you probably can build without them but you would
> > crash eventually
> > in a few places.
> >
> >
> >
> >
> > On Feb 11, 2008 3:43 AM, Rachel Bassett <[EMAIL PROTECTED]>
> wrote:
> > > Thanks for the responses, however I don't think it is
> > > the same. Looking at the google homepage image (on the
> > > link you sent), the text "Web Images News" etc
> > > appears, as well as the blue highlighted links to the
> > > right and below the search box. I don't get any of
> > > that - just images, the search box and the buttons.
> > >
> > > I naively thought that if I could run gtk-demo
> > > successfully and see all the fonts it displays, then I
> > > assumed I had correctly built everything needed. I
> > > have also checked my config.log files for both pango
> > > and cairo and they indeed show I have built cairo for
> > > directfb and pango for cairo. I had initial problems
> > > with gtk-demo not displaying fonts, but that was a
> > > pango problem and now solved.
> > >
> > > So I assuming WebKit does something slightly different
> > > but as yet I don't understand what.
> > >
> > > My current thoughts are that its possibly path related
> > > - I'm working through the output from strace to check
> > > the differences between running WebKit native on a
> > > Linux PC and WebKit cross compiled on my mips
> > > hardware.
> > >
> > > Do I need a gtkrc to point at where fonts / styles
> > > are?
> > >
> > > Many thanks
> > > Rachel
> > >
> > >
> > > --- Srinivas Rao M Hamse <[EMAIL PROTECTED]> wrote:
> > >
> > > > I am posting the same question to everybody on the
> > > > list. Any updates on this
> > > > ?
> > > > regards,
> > > > Srinivas Rao. M
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Feb 11, 2008 10:08 AM, Sriram Neelakandan
> > > > <[EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > Are u seeing problems similar to this :
> > > > >
> > > > > http://msrinirao.blogspot.com/search/label/webkit
> > > > >
> > > > > If u notice closely the pictures attached have
> > > > tiny fonts.
> > > > >
> > > > > Have u found a solution to your problem ?
> > > > > Just wondering if both of you could be seeing the
> > > > same problem.
> > > > >
> > > > > regards
> > > > > Sriram
> > > > >
> > > > >
> > > > >
> > > > > On Feb 8, 2008 8:07 PM, Rachel Bassett
> > > > <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I'm working on a cross compiled build using
> > > > DirectFB,
> > > > > > gtk+, WebKit build too, however I get no fonts
> > > > at all!
> > > > > > I get images, buttons, etc but no text. I've
> > > > tested
> > > > > > gtk+ with gtk-demo and fonts appear correctly
> > > > there,
> > > > > > I've rebuilt my fontconfig cache and checked
> > > > (using
> > > > > > strace) all the font files get found and opened
> > > > as
> > > > > > expected, however I see no text.
> > > > > >
> > > > > > Any hints welcome.
> > > > > >
> > > > > > Thanks
> > > > > > Rachel
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > _

Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-12 Thread Mike Emmel
Hi Rachel just got my directfb build working on the latest head.

What I'm seeing is that fonts are scaled down to thin lines. And other
scaling issues.

I'm assuming this is what you may be seeing.

This is only under the directfb/gtk build not the webkit one.
Also I looked over my changes and they are related mainly to not having X11
installed at all you probably can build without them but you would
crash eventually
in a few places.

On Feb 11, 2008 3:43 AM, Rachel Bassett <[EMAIL PROTECTED]> wrote:
> Thanks for the responses, however I don't think it is
> the same. Looking at the google homepage image (on the
> link you sent), the text "Web Images News" etc
> appears, as well as the blue highlighted links to the
> right and below the search box. I don't get any of
> that - just images, the search box and the buttons.
>
> I naively thought that if I could run gtk-demo
> successfully and see all the fonts it displays, then I
> assumed I had correctly built everything needed. I
> have also checked my config.log files for both pango
> and cairo and they indeed show I have built cairo for
> directfb and pango for cairo. I had initial problems
> with gtk-demo not displaying fonts, but that was a
> pango problem and now solved.
>
> So I assuming WebKit does something slightly different
> but as yet I don't understand what.
>
> My current thoughts are that its possibly path related
> - I'm working through the output from strace to check
> the differences between running WebKit native on a
> Linux PC and WebKit cross compiled on my mips
> hardware.
>
> Do I need a gtkrc to point at where fonts / styles
> are?
>
> Many thanks
> Rachel
>
>
> --- Srinivas Rao M Hamse <[EMAIL PROTECTED]> wrote:
>
> > I am posting the same question to everybody on the
> > list. Any updates on this
> > ?
> > regards,
> > Srinivas Rao. M
> >
> >
> >
> >
> >
> > On Feb 11, 2008 10:08 AM, Sriram Neelakandan
> > <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi
> > >
> > > Are u seeing problems similar to this :
> > >
> > > http://msrinirao.blogspot.com/search/label/webkit
> > >
> > > If u notice closely the pictures attached have
> > tiny fonts.
> > >
> > > Have u found a solution to your problem ?
> > > Just wondering if both of you could be seeing the
> > same problem.
> > >
> > > regards
> > > Sriram
> > >
> > >
> > >
> > > On Feb 8, 2008 8:07 PM, Rachel Bassett
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm working on a cross compiled build using
> > DirectFB,
> > > > gtk+, WebKit build too, however I get no fonts
> > at all!
> > > > I get images, buttons, etc but no text. I've
> > tested
> > > > gtk+ with gtk-demo and fonts appear correctly
> > there,
> > > > I've rebuilt my fontconfig cache and checked
> > (using
> > > > strace) all the font files get found and opened
> > as
> > > > expected, however I see no text.
> > > >
> > > > Any hints welcome.
> > > >
> > > > Thanks
> > > > Rachel
> > > >
> > > >
> > > >
> > > >
> >
> ___
> > > > Yahoo! Answers - Got a question? Someone out
> > there knows the answer. Try
> > > > it
> > > > now.
> > > > http://uk.answers.yahoo.com/
> > > > ___
> > > > webkit-dev mailing list
> > > > webkit-dev@lists.webkit.org
> > > >
> > http://lists.webkit.org/mailman/listinfo/webkit-dev
> > > >
> > >
> > >
> > >
> > > --
> > > Sriram Neelakandan
> > > Author - Embedded Linux System Design And
> > Development (
> > > http://tinyurl.com/2doosu)
> >
> >
> >
> >
> > --
> > Srinivas Rao M  Hamse
> >
>
>
>
>   __
> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-15 Thread Rachel Bassett
Big thanks for this fix - works a treat. Left webkit
rendering over night, still working this morning,
lovely job.

Thanks again
Rachel


--- Alp Toker <[EMAIL PROTECTED]> wrote:

> For the record, the fix for this issue was landed
> (with modifications) 
> in r30201:
> 
>   
>
http://trac.webkit.org/projects/webkit/changeset/30201
> 



  __
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Issues with font rendering on DirectFB build

2008-02-15 Thread Mike Emmel
Also Dennis just fixed a missing call to set the screen resolution in
the gdk/directfb backend.
So now we should not error :)

On Fri, Feb 15, 2008 at 3:50 AM, Rachel Bassett
<[EMAIL PROTECTED]> wrote:
> Big thanks for this fix - works a treat. Left webkit
>  rendering over night, still working this morning,
>  lovely job.
>
>  Thanks again
>  Rachel
>
>
>
>
>  --- Alp Toker <[EMAIL PROTECTED]> wrote:
>
>  > For the record, the fix for this issue was landed
>  > (with modifications)
>  > in r30201:
>  >
>  >
>  >
>  http://trac.webkit.org/projects/webkit/changeset/30201
>  >
>
>
>
>
>
>   __
>  Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev