Ignore:
Timestamp:
03/27/07 13:21:13 (8 years ago)
Author:
hyatt
Message:

Fix for 5090964, arabic text piled on top of itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WindowsMerge/WebCore/platform/win/FontCacheWin.cpp

    r23128 r23202  
    7171    FontData* fontData = 0; 
    7272    HDC hdc = GetDC(0); 
     73    HFONT primaryFont = font.primaryFont()->m_font.hfont(); 
     74    HGDIOBJ oldFont = SelectObject(hdc, primaryFont); 
     75 
    7376    DWORD fontCodePages; 
    74     langFontLink->GetFontCodePages(hdc, font.primaryFont()->m_font.hfont(), &fontCodePages); 
    75  
     77    langFontLink->GetFontCodePages(hdc, primaryFont, &fontCodePages); 
     78    
    7679    DWORD actualCodePages; 
    7780    long cchActual; 
     
    8588    } 
    8689 
     90    SelectObject(hdc, oldFont); 
    8791    ReleaseDC(0, hdc); 
    8892    return fontData; 
Note: See TracChangeset for help on using the changeset viewer.