f5080cd808de9546d75d58135b1f9346aa2dc452
[reactos.git] / reactos / lib / rosrtl / misc / logfont.c
1 #if 0
2 #include <windows.h>
3 #include <string.h>
4 #include <rosrtl/logfont.h>
5
6 void
7 RosRtlLogFontA2W ( LPLOGFONTW pW, const LOGFONTA *pA )
8 {
9 #define COPYS(f,len) MultiByteToWideChar ( CP_THREAD_ACP, 0, pA->f, len, pW->f, len )
10 #define COPYN(f) pW->f = pA->f
11
12 COPYN(lfHeight);
13 COPYN(lfWidth);
14 COPYN(lfEscapement);
15 COPYN(lfOrientation);
16 COPYN(lfWeight);
17 COPYN(lfItalic);
18 COPYN(lfUnderline);
19 COPYN(lfStrikeOut);
20 COPYN(lfCharSet);
21 COPYN(lfOutPrecision);
22 COPYN(lfClipPrecision);
23 COPYN(lfQuality);
24 COPYN(lfPitchAndFamily);
25 COPYS(lfFaceName,LF_FACESIZE);
26
27 #undef COPYN
28 #undef COPYS
29 }
30
31 void
32 RosRtlLogFontW2A ( LPLOGFONTA pA, const LOGFONTW *pW )
33 {
34 #define COPYS(f,len) WideCharToMultiByte ( CP_THREAD_ACP, 0, pW->f, len, pA->f, len, NULL, NULL )
35 #define COPYN(f) pA->f = pW->f
36
37 COPYN(lfHeight);
38 COPYN(lfWidth);
39 COPYN(lfEscapement);
40 COPYN(lfOrientation);
41 COPYN(lfWeight);
42 COPYN(lfItalic);
43 COPYN(lfUnderline);
44 COPYN(lfStrikeOut);
45 COPYN(lfCharSet);
46 COPYN(lfOutPrecision);
47 COPYN(lfClipPrecision);
48 COPYN(lfQuality);
49 COPYN(lfPitchAndFamily);
50 COPYS(lfFaceName,LF_FACESIZE);
51
52 #undef COPYN
53 #undef COPYS
54 }
55 #endif