Skip to content

Phase D.20: Font.shading — run-level background color #33

@loadfix

Description

@loadfix

Add support for run-level background/shading (distinct from highlight color).

API Design

  • font.shading_color — RGBColor or None
  • Separate from font.highlight_color which uses the limited WD_COLOR_INDEX palette
  • Shading allows any RGB color as background behind text

XML

w:rPr > w:shd with w:val='clear' w:fill='RRGGBB'

Note: font.highlight_color already exists for the basic highlights. This is the custom RGB background.

Upstream: python-openxml#309 (11 comments)

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentTriggers the developer agentenhancementNew feature or requestphase-dQuality of Life

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions