{"action":"created","issue":{"url":"https://api.github.com/repos/python-openxml/python-docx/issues/154","labels_url":"https://api.github.com/repos/python-openxml/python-docx/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/python-openxml/python-docx/issues/154/comments","events_url":"https://api.github.com/repos/python-openxml/python-docx/issues/154/events","html_url":"https://github.com/python-openxml/python-docx/issues/154","id":59919363,"number":154,"title":"How to use a custome font","user":{"login":"Taerg-L","id":5730441,"avatar_url":"https://avatars.githubusercontent.com/u/5730441?v=3","gravatar_id":"","url":"https://api.github.com/users/Taerg-L","html_url":"https://github.com/Taerg-L","followers_url":"https://api.github.com/users/Taerg-L/followers","following_url":"https://api.github.com/users/Taerg-L/following{/other_user}","gists_url":"https://api.github.com/users/Taerg-L/gists{/gist_id}","starred_url":"https://api.github.com/users/Taerg-L/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taerg-L/subscriptions","organizations_url":"https://api.github.com/users/Taerg-L/orgs","repos_url":"https://api.github.com/users/Taerg-L/repos","events_url":"https://api.github.com/users/Taerg-L/events{/privacy}","received_events_url":"https://api.github.com/users/Taerg-L/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-05T08:20:32Z","updated_at":"2015-03-06T09:06:46Z","closed_at":null,"body":"I find in there http://python-docx.readthedocs.org/en/latest/api/text.html#docx.text.run.Font\r\nthe font object has a name attribute, and i want to use a custome font. Where should i put the font's file(.otf)?\r\nrun.font.name = \"Adobe 楷体 Std R\"#this the font's name. Should i use the font's file name to replace the font's name ?\r\nI try use it, but useless. What should I do?\r\nThanks."},"comment":{"url":"https://api.github.com/repos/python-openxml/python-docx/issues/comments/77527439","html_url":"https://github.com/python-openxml/python-docx/issues/154#issuecomment-77527439","issue_url":"https://api.github.com/repos/python-openxml/python-docx/issues/154","id":77527439,"user":{"login":"Taerg-L","id":5730441,"avatar_url":"https://avatars.githubusercontent.com/u/5730441?v=3","gravatar_id":"","url":"https://api.github.com/users/Taerg-L","html_url":"https://github.com/Taerg-L","followers_url":"https://api.github.com/users/Taerg-L/followers","following_url":"https://api.github.com/users/Taerg-L/following{/other_user}","gists_url":"https://api.github.com/users/Taerg-L/gists{/gist_id}","starred_url":"https://api.github.com/users/Taerg-L/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taerg-L/subscriptions","organizations_url":"https://api.github.com/users/Taerg-L/orgs","repos_url":"https://api.github.com/users/Taerg-L/repos","events_url":"https://api.github.com/users/Taerg-L/events{/privacy}","received_events_url":"https://api.github.com/users/Taerg-L/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T09:06:46Z","updated_at":"2015-03-06T09:06:46Z","body":"I find the 'w:ascii' and use the name. It still doesn't work. My code as follow: \r\n'''\r\n    run = paragraphs[3].add_run(namea1)\r\n    run.bold = True  #It works.\r\n    run.font.size = Pt(19)  #It works.\r\n    run.font.name = \"Adobe 楷体 Std R\"  #It doesn't work.\r\n'''\r\nI will try other way to solve it.\r\nThanks again."}}