Skip to content

Improve text sizing logic#59

Merged
seveibar merged 3 commits into
mainfrom
codex/adjust-text-bounds-calculation-using-fontsize
Jun 27, 2025
Merged

Improve text sizing logic#59
seveibar merged 3 commits into
mainfrom
codex/adjust-text-bounds-calculation-using-fontsize

Conversation

@seveibar
Copy link
Copy Markdown
Contributor

Summary

  • account for text width/height when computing bounds
  • scale text font sizes using the transform matrix
  • expose font size ratios
  • add tests for new behaviour and adjust existing tests
  • tweak renderer test timing

Testing

  • BUN_UPDATE_SNAPSHOTS=1 bun test tests/getSvgFromGraphicsObject.test.ts
  • bun test tests/getBounds.test.ts
  • bun test
  • bun run format

https://chatgpt.com/codex/tasks/task_b_685ede96ba70832e9088e6da385b7870

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graphics-debug ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 6:54pm

@seveibar seveibar merged commit a2f44e1 into main Jun 27, 2025
2 of 3 checks passed
@seveibar seveibar deleted the codex/adjust-text-bounds-calculation-using-fontsize branch June 27, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant