programaticaly embedding Font Family in .docx file

核能气质少年 提交于 2019-12-06 13:36:25

Yes, it trivial for docx.

MS Word have check-box for that [http://www.howtogeek.com/howto/microsoft-office/embed-true-type-fonts-in-word-and-powerpoint-2007-documents/].

To do this programmatically, investigate first simple DOCX with and without font, and compare the differences.

FYI: docx it is just .zip file, just change extension of both files to .zip and compare they content. If you done this - than you will see additional "font" directory with font files, plus one XML which have references to them.

I don't have please of code, but developing one will be simple.

Note, not all font licenses allow embedding, like http://www.word-2010.com/embedding-fonts-in-word-2010/, but this is separate question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!