diff options
Diffstat (limited to 'webkit/pending/SimpleFontData.h')
-rw-r--r-- | webkit/pending/SimpleFontData.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/webkit/pending/SimpleFontData.h b/webkit/pending/SimpleFontData.h index e68b249..1c066a4 100644 --- a/webkit/pending/SimpleFontData.h +++ b/webkit/pending/SimpleFontData.h @@ -1,7 +1,7 @@ /* * This file is part of the internal font implementation. * - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2006, 2008 Apple Computer, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -37,6 +37,10 @@ typedef struct OpaqueATSUStyle* ATSUStyle; #include <usp10.h> #endif +#if PLATFORM(CAIRO) +#include <cairo.h> +#endif + namespace WebCore { class FontDescription; @@ -134,6 +138,12 @@ private: void commonInit(); +#if PLATFORM(WIN) + void initGDIFont(); + void platformCommonDestroy(); + float widthForGDIGlyph(Glyph glyph) const; +#endif + public: int m_ascent; int m_descent; @@ -165,7 +175,7 @@ public: mutable SimpleFontData* m_smallCapsFontData; -#if PLATFORM(CG) +#if PLATFORM(CG) || PLATFORM(WIN) float m_syntheticBoldOffset; #endif |