我有一个使用 freetype 的 MSVC 项目,现在我正在尝试将其移至 Unicode。但是 freetype 函数不接受文件路径的 LPCTSTR 参数,它们需要“const char *”。所以像这样的代码
WINDOWS_FONT WindowsFont;
// ....
FT_New_Face (pLibrary, WindowsFont.pszFileName, i, &face); // WindowsFont.pszFileName is LPTSTR
当项目是 ascii 时曾经工作,但当它是 Unicode 时不再工作。有没有办法让 freetype 接受 Unicode 文件名,一些预处理器定义可能将其切换为 unicode?