Skip to content

Comments

Add LuaLaTeX font constructor example with documentation#10

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-superpowers-feature
Draft

Add LuaLaTeX font constructor example with documentation#10
Copilot wants to merge 2 commits intomainfrom
copilot/update-superpowers-feature

Conversation

Copy link

Copilot AI commented Jan 26, 2026

Adds reference implementation demonstrating font manipulation in LuaLaTeX using font constructors with Harfbuzz renderer, based on babel discussions #346.

Structure

  • examples/ - New directory for cross-domain reference implementations
  • examples/lualatex-font-constructor/ - Self-contained example with documentation
    • README.md - Technical documentation covering font constructor API, VF commands, and use cases
    • font-constructor-example.tex - Working demonstration modifying vowel properties (width, color)

Implementation

The example registers a custom font feature that modifies character properties at load time:

fonts.constructors.features.otf.register {
  name = "redden",
  manipulators = {
    base = redden,
    node = redden,
    plug = redden  -- Harfbuzz renderer
  }
}

Useful for language-specific typography, custom ligatures, and character-level visual effects where fonts.handlers.otf.addfeature doesn't support Harfbuzz.

Original prompt

Reference: e6007ef


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: paseka10jaroslav-coder <252813980+paseka10jaroslav-coder@users.noreply.github.com>
Copilot AI changed the title [WIP] Update superpowers feature to improve functionality Add LuaLaTeX font constructor example with documentation Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants