~jconti/ubuntu/oneiric/webkit/fix_doc_path

« back to all changes in this revision

Viewing changes to WebCore/platform/graphics/SimpleFontData.h

* New upstream (semi-stable) release
* Fix building on IA64 (Closes: #547797)
  Thanks to Colin Watson <cjwatson@ubuntu.com>
* Fix building on alpha (Closes: #548499)
* Fix building on amd64 FreeBSD

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * This file is part of the internal font implementation.
3
3
 *
4
4
 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
 
5
 * Copyright (C) 2007-2008 Torch Mobile, Inc.
5
6
 *
6
7
 * This library is free software; you can redistribute it and/or
7
8
 * modify it under the terms of the GNU Library General Public
33
34
typedef struct OpaqueATSUStyle* ATSUStyle;
34
35
#endif
35
36
 
36
 
#if PLATFORM(WIN)
 
37
#if PLATFORM(WIN) && !PLATFORM(WINCE)
37
38
#include <usp10.h>
38
39
#endif
39
40
 
45
46
#include <QFont>
46
47
#endif
47
48
 
 
49
#if PLATFORM(HAIKU)
 
50
#include <Font.h>
 
51
#endif
 
52
 
48
53
namespace WebCore {
49
54
 
50
55
class FontDescription;
134
139
 
135
140
#if PLATFORM(WIN)
136
141
    bool isSystemFont() const { return m_isSystemFont; }
 
142
#if !PLATFORM(WINCE)    // disable unused members to save space
137
143
    SCRIPT_FONTPROPERTIES* scriptFontProperties() const;
138
144
    SCRIPT_CACHE* scriptCache() const { return &m_scriptCache; }
139
 
 
 
145
#endif
140
146
    static void setShouldApplyMacAscentHack(bool);
141
147
    static bool shouldApplyMacAscentHack();
142
148
#endif
143
149
 
144
 
#if PLATFORM(CAIRO)
145
 
    void setFont(cairo_t*) const;
146
 
#endif
147
 
 
148
150
#if PLATFORM(WX)
149
151
    wxFont* getWxFont() const { return m_platformData.font(); }
150
152
#endif
159
161
 
160
162
    void commonInit();
161
163
 
162
 
#if PLATFORM(WIN)
 
164
#if PLATFORM(WIN) && !PLATFORM(WINCE)
163
165
    void initGDIFont();
164
166
    void platformCommonDestroy();
165
167
    float widthForGDIGlyph(Glyph glyph) const;
224
226
 
225
227
#if PLATFORM(WIN)
226
228
    bool m_isSystemFont;
 
229
#if !PLATFORM(WINCE)    // disable unused members to save space
227
230
    mutable SCRIPT_CACHE m_scriptCache;
228
231
    mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties;
229
232
#endif
 
233
#endif
230
234
};
231
235
    
232
236