Show
Ignore:
Timestamp:
12/19/07 11:24:10 (12 months ago)
Author:
hyatt@apple.com
Message:

Add support for GDI text on Windows.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/platform/graphics/win/FontPlatformDataWin.cpp

    r28641 r28867  
    129129} 
    130130 
    131 FontPlatformData::FontPlatformData(HFONT font, float size, bool bold, bool oblique) 
     131FontPlatformData::FontPlatformData(HFONT font, float size, bool bold, bool oblique, bool useGDI) 
    132132    : m_font(font) 
    133133    , m_size(size) 
     
    135135    , m_syntheticBold(false) 
    136136    , m_syntheticOblique(false) 
     137    , m_useGDI(useGDI) 
    137138{ 
    138139    HDC hdc = GetDC(0); 
     
    179180        } 
    180181 
     182        // For GDI text, synthetic bold and oblique never need to be set. 
     183        m_syntheticBold = m_syntheticOblique = false; 
     184 
    181185        // Try the face name first.  Windows may end up localizing this name, and CG doesn't know about 
    182186        // the localization.  If the create fails, we'll try the PostScript name. 
     
    203207    , m_syntheticBold(bold) 
    204208    , m_syntheticOblique(oblique) 
     209    , m_useGDI(false) 
    205210{ 
    206211}