在 windows / direct3d 中使用 ttf 文件中的字体

jco*_*der 3 windows directx fonts direct3d

我正在使用 direct3d 9 并使用 D3DXCreateFont 创建一个字体对象,我可以用它来将文本写入屏幕。但是我想使用 TTF 文件中的字体而不是已安装的字体。有没有办法从 TTF 文件创建字体对象,而无需先将字体安装到我不想做的 Windows 中?