DIB Engine: initial pass-through implementation
[wine/hacks.git] / dlls / winedib.drv / font.c
blob85f9198432029ab600bab4081c810c2bfcae3b5a
1 /*
2 * DIBDRV font objects
4 * Copyright 2009 Massimo Del Fedele
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "config.h"
23 #include "wine/port.h"
25 #include "dibdrv.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(dibdrv);
29 /**********************************************************************
30 * DIBDRV_SetTextColor
32 COLORREF DIBDRV_SetTextColor( DIBDRVPHYSDEV *physDev, COLORREF color )
34 TRACE("physDev:%p, color:%08x\n", physDev, color);
36 ONCE(FIXME("stub\n"));
37 return _DIBDRV_GetDisplayDriver()->pSetTextColor(physDev->X11PhysDev, color);
40 /***********************************************************************
41 * DIBDRV_SelectFont
43 HFONT DIBDRV_SelectFont( DIBDRVPHYSDEV *physDev, HFONT hfont, HANDLE gdiFont )
45 TRACE("physDev:%p, hfont:%p, gdiFont:%p\n", physDev, hfont, gdiFont);
47 ONCE(FIXME("stub\n"));
48 return _DIBDRV_GetDisplayDriver()->pSelectFont(physDev->X11PhysDev, hfont, gdiFont);
51 /***********************************************************************
52 * DIBDRV_EnumDeviceFonts
54 BOOL DIBDRV_EnumDeviceFonts( DIBDRVPHYSDEV *physDev, LPLOGFONTW plf,
55 FONTENUMPROCW proc, LPARAM lp )
57 TRACE("physDev:%p, plf:%p, proc:%p, lp:%lx\n", physDev, plf, proc, lp);
59 ONCE(FIXME("stub\n"));
60 return _DIBDRV_GetDisplayDriver()->pEnumDeviceFonts(physDev->X11PhysDev, plf, proc, lp);
63 /***********************************************************************
64 * DIBDRV_GetTextMetrics
66 BOOL DIBDRV_GetTextMetrics( DIBDRVPHYSDEV *physDev, TEXTMETRICW *metrics )
68 TRACE("physDev:%p, metrics:%p\n", physDev, metrics);
69 ONCE(FIXME("stub\n"));
70 return _DIBDRV_GetDisplayDriver()->pGetTextMetrics(physDev->X11PhysDev, metrics);
73 /***********************************************************************
74 * DIBDRV_GetCharWidth
76 BOOL DIBDRV_GetCharWidth( DIBDRVPHYSDEV *physDev, UINT firstChar, UINT lastChar,
77 LPINT buffer )
79 TRACE("physDev:%p, firstChar:%d, lastChar:%d, buffer:%pn", physDev, firstChar, lastChar, buffer);
81 ONCE(FIXME("stub\n"));
82 return _DIBDRV_GetDisplayDriver()->pGetCharWidth(physDev->X11PhysDev, firstChar, lastChar, buffer);