Help - Search - Members - Calendar
Full Version: GDI Text on Windows
Neowin Forums > Help & Discussion Center > Software Discussion & Assistance > Web Browser Discussion > Chrome/Safari (KHTML & WebKit)
1Frothy
Source: Webkit.org

The version of WebKit that ships with Safari 3.1 on Windows uses CoreGraphics antialiasing for text. The latest WebKit in nightly builds has made good progress on a GDI text rendering mode (i.e., the text rendering matches your OS look/settings). We encourage Windows testers to try out GDI text rendering and file bugs that you find at http://bugs.webkit.org/.

To enable GDI text rendering, you will need to hand edit your preferences file, as there is no visible UI option in Safari 3.1 for this. You will need to set WebKit’s “WebKitFontSmoothingType” preference to a value of “4″.

The preferences file on Windows XP is:

C:\Documents and Settings\<username>\Application Data\Apple Computer\Safari\WebKitPreferences.plist

On Vista, it is:

C:\Users\<username>\AppData\Roaming\Apple Computer\Safari\WebKitPreferences.plist

The values that are listed in Safari’s UI for this preference map to the numbers 0-3.

Note that while you can turn on GDI text rendering in the WebKit that ships with Safari 3.1, most advanced text features will not work. These include stroking and filling text, most advanced text features in SVG, shadows, partially transparent text (rgba/hsla) and text inside a transparency layer (opacity). All of these features should work now in the latest nightlies.

If you have changed the setting in Safari you may have to edit that preference file. It can be found at:

%APPDATA%\Apple Computer\Safari\Preferences\com.apple.Safari.plist
DigitalE
Doesn't seem to do anything for me...
megamanXplosion
It didn't do anything for me either.
The_Decryptor
http://webkit.org/blog/168/gdi-text-on-win.../#comment-24085

Make sure the page you're on isn't using Lucida Grande (read the comment one up to see why, and oh hey it's me!)
megamanXplosion
I figured out why it wasn't working for me. The setting kept being reverted because you have to change two settings to make it work.

Using Notepad, open this file: C:\Documents and Settings\<username>\Application Data\Apple Computer\Safari\WebKitPreferences.plist.

Change the value for FontSmoothing and WebKitFontSmoothingType from 0 to 4.

Save the file and open Safari to visit Neowin or another website that doesn't use the Lucida Grande font.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.