svnno****@sourc*****
svnno****@sourc*****
Tue Apr 17 15:51:13 JST 2007
Revision: 3205 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3205 Author: ikezoe Date: 2007-04-17 15:51:12 +0900 (Tue, 17 Apr 2007) Log Message: ----------- * module/embed/gtk-webcore/kz-gtk-webcore.cpp: Now font size unit is point. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-04-17 02:11:43 UTC (rev 3204) +++ kazehakase/trunk/ChangeLog 2007-04-17 06:51:12 UTC (rev 3205) @@ -1,5 +1,10 @@ 2007-04-17 Hiroyuki Ikezoe <poinc****@ikezo*****> + * module/embed/gtk-webcore/kz-gtk-webcore.cpp: Now font size unit is + point. + +2007-04-17 Hiroyuki Ikezoe <poinc****@ikezo*****> + * module/embed/gtk-webcore/kz-gtk-webcore.cpp: We have our own WebiSettings. Modified: kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp =================================================================== --- kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp 2007-04-17 02:11:43 UTC (rev 3204) +++ kazehakase/trunk/module/embed/gtk-webcore/kz-gtk-webcore.cpp 2007-04-17 06:51:12 UTC (rev 3205) @@ -478,14 +478,15 @@ g_free(sans_font); g_free(mono_font); + double dpi_pixel_ratio = 72.0 / 96.0; if (size_variable >= 0) - settings->default_font_size = (gfloat)size_variable; + settings->default_font_size = (gfloat)(size_variable * dpi_pixel_ratio); if (size_fixed >= 0) - settings->default_fixed_font_size = (gfloat)size_fixed; + settings->default_fixed_font_size = (gfloat)(size_fixed * dpi_pixel_ratio); if (min_size_variable >= 0) - settings->minimum_font_size = (gfloat)min_size_variable; + settings->minimum_font_size = (gfloat)(min_size_variable * dpi_pixel_ratio); if (min_size_fixed >= 0) - settings->minimum_font_size = (gfloat)min_size_fixed; + settings->minimum_font_size = (gfloat)(min_size_fixed * dpi_pixel_ratio); } static void