Title: Cannot set Chinese character font typeface · Issue #346 · python-openxml/python-docx · GitHub
Open Graph Title: Cannot set Chinese character font typeface · Issue #346 · python-openxml/python-docx
X Title: Cannot set Chinese character font typeface · Issue #346 · python-openxml/python-docx
Description: I tried set set Chinese character font typeface, but failed. it works for English characters, but not for Chinese characters although they are at the same line. from docx import Document from docx.shared import Pt document = Document() p...
Open Graph Description: I tried set set Chinese character font typeface, but failed. it works for English characters, but not for Chinese characters although they are at the same line. from docx import Document from docx....
X Description: I tried set set Chinese character font typeface, but failed. it works for English characters, but not for Chinese characters although they are at the same line. from docx import Document from docx....
Opengraph URL: https://github.com/python-openxml/python-docx/issues/346
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot set Chinese character font typeface","articleBody":"I tried set set Chinese character font typeface, but failed. it works for English characters, but not for Chinese characters although they are at the same line. \r\n\r\n```\r\nfrom docx import Document\r\nfrom docx.shared import Pt\r\n\r\ndocument = Document()\r\np = document.add_paragraph('A plain paragraph having some ')\r\nrun = p.add_run(\"\\n中文字体设置。Character formatting is applied at the Run level. Examples include font typeface and size, bold, italic, and underline.\")\r\nfont = run.font\r\nfont.name = '宋体' #simSong\r\nfont.size = Pt(20)\r\n```\r\n\r\n","author":{"url":"https://github.com/zhangyewu","@type":"Person","name":"zhangyewu"},"datePublished":"2017-01-09T07:00:35Z","url":"https://github.com/python-openxml/python-docx/issues/346"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:59033dc5-1e0e-5ddd-ab0d-8d14c2e2360d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E154:EA085:23DB11:3160BD:6AFF6586 |
| html-safe-nonce | 1109639f6cc73bfe4b48b1a61c07d79de67d209ced59a3f96afe7a66078235e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTU0OkVBMDg1OjIzREIxMTozMTYwQkQ6NkFGRjY1ODYiLCJ2aXNpdG9yX2lkIjoiNzkzMzI3ODE1MjAxMTI0NDkzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 67b6d105cd3b2f111235abcec09dab656838f5bb0d141e21fc774f5b48b8ff21 |
| hovercard-subject-tag | issue:199488594 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/346/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd0a0bc58d66cbe9967f174d107a09ff2f9b26cdb4e616d596d896a2bd919a4b/python-openxml/python-docx/issues/346 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd0a0bc58d66cbe9967f174d107a09ff2f9b26cdb4e616d596d896a2bd919a4b/python-openxml/python-docx/issues/346 |
| og:image:alt | I tried set set Chinese character font typeface, but failed. it works for English characters, but not for Chinese characters although they are at the same line. from docx import Document from docx.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zhangyewu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b58589a1c4eda1e3c8904144a412b88ca4455f63ca2ad3629f2e9f3c3a1d12 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8968d6d6acc65d74e4df332d23932dd3fd0502a4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width