Skip to content

中英混合字体有办法实现吗? #99

Open

Description

@MyShunine

比如一段话中既有中文又有英文,中文使用宋体进行设置,英文使用Times New Roman

Activity

  1. draco1023 commented on Dec 21, 2023

    @draco1023
    Owner

    @MyShunine 你可以对不同的文字设置不同的font-family样式,但是本库不会自动这样处理

  2. draco1023 commented on Aug 11, 2024

    @draco1023
    Owner
  3. liyohecn commented on Jun 4, 2026

    @liyohecn

    重写org.ddr.poi.html.HtmlRenderContext的applyTextStyle方法,根据你自己的需要设置中文/西文字体

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions