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

Sriram Neelakandan sriram.neelakandan at gmail.com
Wed Feb 13 02:36:50 PST 2008


Alp

for some reason DPI reported by     gdk_screen_get_resolution(screen);
in webkitwebview.cpp is incorrect !!
It returns a -1 !! so i fixed the DPI to 96 when its -1

so probably we need this change !!

*************** static void webkit_web_view_screen_chang
*** 1097,1102 ****
--- 1097,1103 ----
  #if GTK_CHECK_VERSION(2, 10, 0)
      GdkScreen* screen = gtk_widget_has_screen(GTK_WIDGET(webView)) ?
gtk_widget_get_screen(GTK_WIDGET(webView)) : gdk_screen_get_default();
      gdouble DPI = gdk_screen_get_resolution(screen);
+     if (DPI == -1) DPI = 96;
  #else
      gdouble DPI = 96;
      g_warning("Cannot retrieve resolution, falling back to 96 DPI");

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



On Feb 13, 2008 2:09 PM, Alp Toker <alp at atoker.com> wrote:

> Some DPI-based font scaling was introduced in this commit:
>
>   http://trac.webkit.org/projects/webkit/changeset/29723
>
> Could you try disabling that logic (and anything similar you find in
> WebFrame and WebView) to see if it helps?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080213/6db40708/attachment.html


More information about the webkit-dev mailing list