比如一段话中既有中文又有英文,中文使用宋体进行设置,英文使用Times New Roman
Activity
draco1023 commentedon Dec 21, 2023
@MyShunine 你可以对不同的文字设置不同的
font-family样式,但是本库不会自动这样处理draco1023 commentedon Aug 11, 2024
python-openxml/python-docx#346
liyohecn commentedon Jun 4, 2026
重写org.ddr.poi.html.HtmlRenderContext的applyTextStyle方法,根据你自己的需要设置中文/西文字体