Embedded fonts in RTF
问题 According to the rtf specs, we can embed a font in an rtf file using the \fontemb and \fontfile control words. Can someone give me a working example of that? I'd like the rtf file to use the font that's located in a separate file (i.e. .ttf file) 回答1: You should use TTEmbedFont function to create embedded font data. http://msdn.microsoft.com/en-us/library/windows/desktop/dd145145(v=vs.85).aspx Like this. //WRITEEMBEDPROC unsigned long WriteEmbedProc(void *lpvWriteStream, const void *lpvBuffer