作者:JasonXie | 来源:互联网 | 2023-05-18 08:11
为什么某些特殊字符在UE下显示方框,而在Windows记事本下却显示正常?为什么将记事本的字体设置为英文字体(如Wingdings字体)后,中文依然显示正常?字体对话框的“脚本”选项,是什么意思?感
为什么某些特殊字符在UE下显示方框,而在Windows记事本下却显示正常?
为什么将记事本的字体设置为英文字体(如Wingdings字体)后,中文依然显示正常?
字体对话框的“脚本”选项,是什么意思?
感谢CSDN的大神们回答这三个问题,非常感谢,非常感谢!
if (hFile != INVALID_HANDLE_VALUE) {
DWORD dwWritten;
WriteFile (hFile, &bmfh, sizeof (BITMAPFILEHEADER), &dwWritten, NULL);
WriteFile (hFile, pbmi, sizeof (BITMAPINFOHEADER) + sizeof (RGBQUAD) * 2, &dwWritten, NULL);
WriteFile (hFile, pvBits, pbmi->bmiHeader.biSizeImage, &dwWritten, NULL);
CloseHandle (hFile);
}
DeleteObject (hFont);
DeleteObject (hBitmap);
DeleteDC (hDC);
LocalFree (pbmi);
return 0;
}
CreateFont
The CreateFont function creates a logical font that has specific characteristics. The logical font can subsequently be selected as the font for any device.
HFONT CreateFont(
int nHeight, // logical height of font
int nWidth, // logical average character width
int nEscapement, // angle of escapement
int nOrientation, // base-line orientation angle
int fnWeight, // font weight
DWORD fdwItalic, // italic attribute flag
DWORD fdwUnderline, // underline attribute flag
DWORD fdwStrikeOut, // strikeout attribute flag
DWORD fdwCharSet, // character set identifier
DWORD fdwOutputPrecision, // output precision
DWORD fdwClipPrecision, // clipping precision
DWORD fdwQuality, // output quality
DWORD fdwPitchAndFamily, // pitch and family
LPCTSTR lpszFace // pointer to typeface name string
);