Skip to content

Escape font names written into fonts.conf - #10285

Closed
chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:fix/font-set-escape-xml
Closed

chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:fix/font-set-escape-xml

Conversation

@chessing234

@chessing234 chessing234 commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Raw font names were interpolated into fonts.conf XML.
  • Escape &, <, >, quotes so a weird family name cannot break fontconfig.

Test plan

  • omarchy-font-set with a normal monospace font still works
  • A name containing & produces valid XML

Raw font names were interpolated into XML. Names with & or < produced invalid fontconfig and broke monospace resolution.

Signed-off-by: Taksh <takshkothari09@gmail.com>
chessing234 added a commit to chessing234/omarchy that referenced this pull request Sep 16, 2026
…family lookup

Fold omacom#10285 and omacom#10804 into the omacom#10811 branch so one PR covers escaping,
injection refusal, and family-scoped font lookup.
@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #10811.

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.

1 participant