Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FontFace and consistent text sizing #988

Merged
merged 22 commits into from
Nov 9, 2024

Conversation

boatbomber
Copy link
Member

@boatbomber boatbomber commented Nov 6, 2024

The Gotham font we use no longer exists. This PR upgrades to using FontFace, and also unifies our styling by putting fonts and text sizes into Theme instead of hardcoding them inline. This will make it easier to adjust our UI in the future (or perhaps add accessibility settings).

It's pretty much identical to before, but all the text sizes are consistent (no more 14 vs 15) and the notifs and tooltips are better at getting the correct text bounds (no cutting off edge cases anymore).

Screenshot 2024-11-05 180127

@boatbomber boatbomber added scope: plugin Relevant to the Roblox Studio plugin type: tech debt Internal work that needs to happen skip changelog PRs that may skip the changelog enforcement check labels Nov 6, 2024
Copy link
Member

@kennethloeffler kennethloeffler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, and this can probably be included in the changelog as "Fixed notification and tooltip text sometimes getting cut off"

plugin/src/App/getTextBounds.lua Outdated Show resolved Hide resolved
plugin/src/App/getTextBounds.lua Outdated Show resolved Hide resolved
Copy link
Member

@Dekkonot Dekkonot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ken already addressed the concerns I have; this needs a changelog entry, and our text bound check might yield. Otherwise, looks good.

@boatbomber boatbomber removed the skip changelog PRs that may skip the changelog enforcement check label Nov 9, 2024
@boatbomber boatbomber merged commit 8c33100 into rojo-rbx:master Nov 9, 2024
6 checks passed
@boatbomber boatbomber deleted the feature/use-fontface branch November 9, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: plugin Relevant to the Roblox Studio plugin type: tech debt Internal work that needs to happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants