fix: low resolution username and year#69
fix: low resolution username and year#69chrisreddington merged 7 commits intogithub:mainfrom chriswblake:cwb/fix-low-resolution-username-and-year
Conversation
|
@chrisreddington, I've verified the following.
If there is anything else I need to check, let me know. I think the text looks thinner because of the applied resolution. If the thicker letters were intentional, I can look into making that adjustable. |
|
Thanks for taking a look at this @chriswblake! I've tried exporting a few models. The single year exports seem fine, but I cannot export a multi-year model - Do you have the same issue locally? (e.g. |
|
@chrisreddington,
|
|
@chrisreddington, |
Fascinating, I've tried again with a fresh Codespace and still get the same thing. Let me do some digging... |
|
Yay! 🥳 |








This pull request fixes the issue of low resolution username and year.
It includes significant changes to the text and image rendering functionalities in the
stl/geometry/text.gofile. The changes involve refactoring the code to simplify and enhance the rendering process, removing redundant configurations, and introducing an adjustable resolution parameterbaseWidthVoxelResolution.Refactoring and simplification:
textRenderConfigandimageRenderConfigstructs and their associated configurations, simplifying the parameters for text and image rendering functions.renderTextfunction to align text on the skyline face using justification and offset percentages instead of fixed context dimensions. Added detailed comments to explain the parameters and return values.createVoxelOnFaceto create voxels on the skyline base's face, improving modularity and readability.Before
After