Mercurial > dwindows
comparison os2/dw.c @ 1676:007bced14910
Explicitly set codepage 1208 for GPI rendering on OS/2...
It clearly is not inherited from the PM codepage automatically.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 27 Apr 2012 08:25:58 +0000 |
parents | db393069b27d |
children | 896f377a47c7 |
comparison
equal
deleted
inserted
replaced
1675:ca5123dc5819 | 1676:007bced14910 |
---|---|
4591 else | 4591 else |
4592 { | 4592 { |
4593 strcpy(buf, currfont); | 4593 strcpy(buf, currfont); |
4594 strcpy(fd.fAttrs.szFacename, currfont); | 4594 strcpy(fd.fAttrs.szFacename, currfont); |
4595 } | 4595 } |
4596 } | 4596 } |
4597 fd.fAttrs.usCodePage = 1208; | |
4598 fd.fAttrs.usRecordLength = sizeof(FATTRS); | |
4597 | 4599 |
4598 /* Fill in the font dialog struct */ | 4600 /* Fill in the font dialog struct */ |
4599 fd.cbSize = sizeof(fd); | 4601 fd.cbSize = sizeof(fd); |
4600 fd.hpsScreen = WinGetScreenPS(HWND_DESKTOP); | 4602 fd.hpsScreen = WinGetScreenPS(HWND_DESKTOP); |
4601 fd.pszTitle = (PSZ)"Choose Font"; | 4603 fd.pszTitle = (PSZ)"Choose Font"; |
9833 | 9835 |
9834 memset(&fat, 0, sizeof(fat)); | 9836 memset(&fat, 0, sizeof(fat)); |
9835 | 9837 |
9836 fat.usRecordLength = sizeof(FATTRS); | 9838 fat.usRecordLength = sizeof(FATTRS); |
9837 fat.lMatch = fm.lMatch; | 9839 fat.lMatch = fm.lMatch; |
9840 fat.usCodePage = 1208; | |
9838 strcpy(fat.szFacename, fm.szFacename); | 9841 strcpy(fat.szFacename, fm.szFacename); |
9839 | 9842 |
9840 GpiCreateLogFont(hpsDst, 0, 1L, &fat); | 9843 GpiCreateLogFont(hpsDst, 0, 1L, &fat); |
9841 GpiSetCharSet(hpsDst, 1L); | 9844 GpiSetCharSet(hpsDst, 1L); |
9842 | 9845 |