| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the internal font implementation. It should not be incl
uded by anyone other than | 2 * This file is part of the internal font implementation. It should not be incl
uded by anyone other than |
| 3 * FontMac.cpp, FontWin.cpp and Font.cpp. | 3 * FontMac.cpp, FontWin.cpp and Font.cpp. |
| 4 * | 4 * |
| 5 * Copyright (C) 2006, 2007, 2008 Apple Inc. | 5 * Copyright (C) 2006, 2007, 2008 Apple Inc. |
| 6 * Copyright (C) 2008 Brent Fulgham | 6 * Copyright (C) 2008 Brent Fulgham |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 FontPlatformData::FontPlatformData(HFONT font, float size, bool bold, bool obliq
ue, bool useGDI) | 40 FontPlatformData::FontPlatformData(HFONT font, float size, bool bold, bool obliq
ue, bool useGDI) |
| 41 : m_font(RefCountedGDIHandle<HFONT>::create(font)) | 41 : m_font(RefCountedGDIHandle<HFONT>::create(font)) |
| 42 , m_size(size) | 42 , m_size(size) |
| 43 , m_orientation(Horizontal) | 43 , m_orientation(Horizontal) |
| 44 , m_widthVariant(RegularWidth) | 44 , m_widthVariant(RegularWidth) |
| 45 #if USE(CG) | 45 #if USE(CG) |
| 46 , m_cgFont(0) | 46 , m_cgFont(0) |
| 47 #elif USE(CAIRO) | |
| 48 , m_scaledFont(0) | |
| 49 #endif | 47 #endif |
| 50 , m_isColorBitmapFont(false) | 48 , m_isColorBitmapFont(false) |
| 51 , m_syntheticBold(bold) | 49 , m_syntheticBold(bold) |
| 52 , m_syntheticOblique(oblique) | 50 , m_syntheticOblique(oblique) |
| 53 , m_useGDI(useGDI) | 51 , m_useGDI(useGDI) |
| 54 { | 52 { |
| 55 HWndDC hdc(0); | 53 HWndDC hdc(0); |
| 56 SaveDC(hdc); | 54 SaveDC(hdc); |
| 57 | 55 |
| 58 SelectObject(hdc, font); | 56 SelectObject(hdc, font); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 90 } |
| 93 | 91 |
| 94 #ifndef NDEBUG | 92 #ifndef NDEBUG |
| 95 String FontPlatformData::description() const | 93 String FontPlatformData::description() const |
| 96 { | 94 { |
| 97 return String(); | 95 return String(); |
| 98 } | 96 } |
| 99 #endif | 97 #endif |
| 100 | 98 |
| 101 } | 99 } |
| OLD | NEW |