Fonts Fixed (sort-of)


With the help of the good Dave Hyatt, I managed to track down the cause of the strange font behavior in the Cairo port. As it turns out, the problem was actually also present in the CG port, but had a slightly more benign failure mode.

You can read the gory details here.

You will also need the following two patches:
17484 and 21822. These should be the only two patches needed, as 17484 contains a diff against my current sources, and should apply cleanly against svn trunk (at least for the next few minutes! :-))

You may also need the following changes in your WebCore/config.h to flip the proper compiler switches. I hope to someday get this addressed properly in WebKit itself:


Index: WebCore/config.h
===================================================================
--- WebCore/config.h (revision 37798)
+++ WebCore/config.h (working copy)
@@ -96,9 +96,16 @@
#endif

#if PLATFORM(WIN)
+#if 0
#define WTF_PLATFORM_CG 1
#undef WTF_PLATFORM_CAIRO
#define WTF_USE_CFNETWORK 1
+#else
+#undef WTF_PLATFORM_CG
+#define WTF_PLATFORM_CAIRO 1
+#undef WTF_USE_CFNETWORK
+#define WTF_USE_CURL 1
+#endif
#undef WTF_USE_WININET
#define WTF_PLATFORM_CF 1
#define WTF_USE_PTHREADS 0

Comments

jorge said…
I'm trying to compile webkit for windows, using cairo and any other libs I need to in order to distribute a windows application with webkit embedded in it. It seems like you have a test windows application with webkit embedded in it. Do you have this code in the webkit codebase? Any help you can provide on this is appreciated. Thanks.
bfulgham said…
Most of the screenshots I post are from the WinLauncher executable. It can be found in the WebKitTools directory of the WebKit sources.

Popular Posts