static INT CFn_FitCharSet( HWND hDlg, int charset )
{
int i,n,cs;
- /* look for fitting har set in combobox5 */
+ /* look for fitting char set in combobox5 */
n=SendDlgItemMessageA(hDlg, cmb5, CB_GETCOUNT, 0, 0);
for (i=0;i<n;i++)
{
j=SendDlgItemMessageA(hDlg,cmb1,CB_FINDSTRING,-1,(LONG)lpxx->lfFaceName);
if (j!=CB_ERR)
{
- INT height = (lpcf->iPointSize + 5) / 10;
+ INT height = lpxx->lfHeight < 0 ? -lpxx->lfHeight :
+ lpxx->lfHeight;
int charset = lpxx->lfCharSet;
- pstyle=MAKELONG(lpxx->lfWeight > FW_MEDIUM ? FW_BOLD:FW_NORMAL,lpxx->lfItalic !=0);
+ pstyle = MAKELONG(lpxx->lfWeight > FW_MEDIUM ? FW_BOLD:
+ FW_NORMAL,lpxx->lfItalic !=0);
SendDlgItemMessageA(hDlg, cmb1, CB_SETCURSEL, j, 0);
SendMessageA(hDlg, WM_COMMAND, MAKEWPARAM(cmb1, CBN_SELCHANGE),
(LPARAM)GetDlgItem(hDlg,cmb1));
}
lpChFont->lpTemplateName=lpTemplateName;
+ lpChFont->iPointSize = cf32a.iPointSize;
+ lpChFont->Flags = cf32a.Flags;
+ lpChFont->rgbColors = cf32a.rgbColors;
+ lpChFont->lCustData = cf32a.lCustData;
+ lpChFont->nFontType = cf32a.nFontType;
font16 = MapSL(lpChFont->lpLogFont);
font16->lfHeight = cf32a.lpLogFont->lfHeight;