- another try at fixing the Windows build
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2006 07:20:02 +0000 (07:20 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2006 07:20:02 +0000 (07:20 +0000)
        * platform/win/FontWin.cpp: (WebCore::getFontData): Use characters()
        instead of unicode().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14281 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog [new file with mode: 0644]
WebCore/platform/win/FontWin.cpp

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
new file mode 100644 (file)
index 0000000..6a79644
--- /dev/null
@@ -0,0 +1,8 @@
+2006-05-10  Darin Adler  <darin@apple.com>
+
+        - another try at fixing the Windows build
+
+        * platform/win/FontWin.cpp: (WebCore::getFontData): Use characters()
+        instead of unicode().
+
+== Rolled over to ChangeLog-2006-05-10 ==
index 2dcb9acd005e94cd70be9ce3f78d845f6452d5eb..118135b8c52a781d3881fa951de6fe584f414888 100644 (file)
@@ -53,7 +53,7 @@ FontData* getFontData(const FontDescription& fontDescription, const AtomicString
     winfont.lfItalic = fontDescription.italic();
     winfont.lfWeight = fontDescription.weight() == cBoldWeight ? 700 : 400; // FIXME: Support weights for real.
     int len = min(fontFace.length(), LF_FACESIZE - 1);
-    memcpy(winfont.lfFaceName, fontFace.unicode(), len * sizeof(WORD));
+    memcpy(winfont.lfFaceName, fontFace.characters(), len * sizeof(WORD));
     winfont.lfFaceName[len] = '\0';
 
     HFONT font = CreateFontIndirectW(&winfont);