Skip to content

Phase D.25: Font.name_far_east — East Asian font support #38

@loadfix

Description

@loadfix

Add support for East Asian (CJK) font name property.

API Design

  • font.name_far_east — str or None (the East Asian font name)
  • font.name_east_asia — alias for the above (matches OOXML terminology)

XML

w:rPr > w:rFonts with w:eastAsia attribute (alongside existing w:ascii, w:hAnsi, w:cs)

python-docx currently only exposes font.name which maps to w:ascii and w:hAnsi. The eastAsia and cs attributes are not accessible.

Also add:

  • font.name_cs — Complex Script font name (w:cs attribute)

Upstream: python-openxml#154 (9 comments), python-openxml#346 (8 comments), python-openxml#329 (6 comments)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-dQuality of Life

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions