Repository navigation
feat: Add pcbStyle.silkscreenFontSize support for global silkscreen text sizing - #1597
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
seveibar
left a comment
There was a problem hiding this comment.
Close, youll want to use something like getInheritedPropery, also use the ?? operator instead of an if else
|
this is probably out of scope for the first PR but we will want to provide something called resolvedPcbStyle to the footprint map so that the CAD footprint loader uses this silk screen font size instead of the one in kicad |
Sounds like a good step ahead of this merger |
|
@seveibar @techmannih added the snapshot |
|
Thank you for your contribution! 🎉 PR Rating: ⭐⭐ Track your contributions and see the leaderboard at: tscircuit Contribution Tracker Comment posted by tscircuitbot |
PR Description
This implementation adds support for controlling silkscreen text font size globally via
pcbStyle.silkscreenFontSize, enabling consistent text sizing across all silkscreen elements on a board.Changes done
@tscircuit/propsdependency to^0.0.384to supportpcbStylepropdoInitialPcbPrimitiveRender()to check board'spcbStyle.silkscreenFontSizefontSizeprop →pcbStyle.silkscreenFontSize→ default (1)getPcbSize()method to use the same font size resolution logicpcbStyle.silkscreenFontSizecorrectly sets font size for silkscreen textfixes #1596
/claim #1596