[webkit-dev] Issues with font rendering on DirectFB build
Mike Emmel
mike.emmel at gmail.com
Tue Feb 12 21:12:34 PST 2008
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
<sriram.neelakandan at gmail.com> 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.000000000 +0530
> --- FontPlatformDataGtk.cpp 2008-02-12 16:29:20.000000000 +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 <mike.emmel at gmail.com> 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 <rachel.bassett at yahoo.co.uk>
> 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 <msrinirao at gmail.com> 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
> > > > <sriram.neelakandan at gmail.com>
> > > > 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
> > > > <rachel.bassett at yahoo.co.uk> 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 at 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
> > >
> >
>
>
>
>
>
More information about the webkit-dev
mailing list