Ticket #92: getunicoderanges.diff

File getunicoderanges.diff, 4.0 KB (added by psmedley, 11 years ago)

diff to implement function

  • include/win/wingdi.h

     
    34333433#define FR_PRIVATE  0x10
    34343434#define FR_NOT_ENUM 0x20
    34353435
     3436typedef struct tagWCRANGE {
     3437  WCHAR  wcLow;
     3438  USHORT cGlyphs;
     3439} WCRANGE, *PWCRANGE, *LPWCRANGE;
    34363440
     3441typedef struct tagGLYPHSET {
     3442  DWORD    cbThis;
     3443  DWORD    flAccel;
     3444  DWORD    cGlyphsSupported;
     3445  DWORD    cRanges;
     3446  WCRANGE  ranges[1];
     3447} GLYPHSET, *PGLYPHSET, *LPGLYPHSET;
     3448
    34373449INT         WINAPI AbortDoc(HDC);
    34383450BOOL        WINAPI AbortPath(HDC);
    34393451INT         WINAPI AddFontResourceA(LPCSTR);
     
    36123624UINT      WINAPI GetEnhMetaFilePaletteEntries(HENHMETAFILE,UINT,LPPALETTEENTRY);
    36133625DWORD     WINAPI GetFontData(HDC,DWORD,DWORD,LPVOID,DWORD);
    36143626DWORD     WINAPI GetFontLanguageInfo(HDC);
     3627DWORD     WINAPI GetFontUnicodeRanges(HDC,LPGLYPHSET);
    36153628DWORD     WINAPI GetGlyphIndicesA(HDC,LPCSTR,INT,LPWORD,DWORD);
    36163629DWORD     WINAPI GetGlyphIndicesW(HDC,LPCWSTR,INT,LPWORD,DWORD);
    36173630#define   GetGlyphIndices WINELIB_NAME_AW(GetGlyphIndices)
  • src/gdi32/gdi32dbg.def

     
    176176    GetFontData                = "_DbgGetFontData@20"           @257
    177177    GetFontLanguageInfo        = "_DbgGetFontLanguageInfo@4"    @258
    178178;    GetFontResourceInfo        = _DbgGetFontResourceInfo@??     @259
     179    GetFontUnicodeRanges       = "_GetFontUnicodeRanges@8"   @259
    179180    GetGlyphOutline            = "_DbgGetGlyphOutlineA@28"      @260
    180181    GetGlyphOutlineA           = "_DbgGetGlyphOutlineA@28"      @261
    181182    GetGlyphOutlineW           = "_DbgGetGlyphOutlineW@28"      @262
  • src/gdi32/dbgwrap.cpp

     
    7777DEBUGWRAP20(GetFontData)
    7878DEBUGWRAP4(GetFontLanguageInfo)
    7979//;    GetFontResourceInfo        = _GetFontResourceInfo@??     @259
     80DEBUGWRAP4(GetFontUnicodeRanges)
    8081DEBUGWRAP28(GetGlyphOutlineA)
    8182DEBUGWRAP28(GetGlyphOutlineW)
    8283DEBUGWRAP4(RemoveFontResourceA)
  • src/gdi32/font.cpp

     
    647647  return (0);
    648648}
    649649
     650/*****************************************************************************
     651 * Name      : DWORD GetFontUnicodeRanges
     652 * Purpose   : Retrieve a list of supported Unicode characters in a font.
     653 *             
     654 *             
     655 *             
     656 * Parameters: hdc  [I] Handle to a device context.
     657 *             lpgs [O] GLYPHSET structure specifying supported character ranges.
     658 * Variables :
     659 * Result    :
     660 * Remark    :
     661 * Status    : UNTESTED STUB
     662 *
     663 * Author    : Paul Smedley [Sun, 2012/12/30 19:19]
     664 *****************************************************************************/
    650665
     666DWORD WIN32API GetFontUnicodeRanges(HDC hdc, LPGLYPHSET lpgs)
     667{
     668  dprintf(("GDI32: GetFontUnicodeRanges(%08xh) not implemented.\n",
     669           hdc));
     670
     671  return (0);
     672}
     673
     674
    651675/*************************************************************************
    652676 * TranslateCharsetInfo [GDI32.382]
    653677 *
  • src/gdi32/gdi32.def

     
    176176    GetFontData                = "_GetFontData@20"           @257
    177177    GetFontLanguageInfo        = "_GetFontLanguageInfo@4"    @258
    178178;    GetFontResourceInfo        = _GetFontResourceInfo@??     @259
     179    GetFontUnicodeRanges       = "_GetFontUnicodeRanges@8"   @259
    179180    GetGlyphOutline            = "_GetGlyphOutlineA@28"      @260
    180181    GetGlyphOutlineA           = "_GetGlyphOutlineA@28"      @261
    181182    GetGlyphOutlineW           = "_GetGlyphOutlineW@28"      @262