Skip to content

feat: Add font switcher with customizable font sizes#204

Open
sluhtie wants to merge 49 commits intoNoRiskClient:dev/0.6.18from
sluhtie:feature/font-switcher
Open

feat: Add font switcher with customizable font sizes#204
sluhtie wants to merge 49 commits intoNoRiskClient:dev/0.6.18from
sluhtie:feature/font-switcher

Conversation

@sluhtie
Copy link
Copy Markdown

@sluhtie sluhtie commented Jan 9, 2026

Font Switcher Feature

This PR adds a comprehensive font customization system that allows users to switch between the original Minecraft font and a modern monospace font, with adjustable font sizes for each.

Discord Ticket: https://discord.com/channels/774271756549619722/1459290558114562058

Features

  • Font Family Switcher: Toggle between Minecraft font and modern system font (Noto Sans Mono)
  • Font Size Controls: Separate adjustable font sizes for both font families
    • Modern font: 10-20px (default: 18px)
    • Minecraft font: 12-24px (default: 22px)
  • Smart Typography:
    • Modern font uses Small Caps for headings and important text (all caps with uniform appearance)
    • Descriptions use normal font (Noto Sans) with regular capitalization
    • Minecraft font maintains original styling with lowercase headings

Changes

  • Added font family state management to useThemeStore
  • Implemented dynamic font application via CSS variables
  • Added font switcher UI in Settings → General tab
  • Integrated font size sliders with real-time preview
  • Added Noto Sans Mono and Noto Sans fonts from Google Fonts
  • Updated CSS to support dynamic font switching

Technical Details

  • Font settings are persisted in localStorage
  • Font changes apply immediately without page reload
  • Separate font sizes for modern and Minecraft fonts
  • Modern font headings use 92% of base font size for optimal readability
  • All font-related settings are grouped in the General settings tab

Defaults

  • Default font family: Minecraft
  • Default modern font size: 18px
  • Default Minecraft font size: 22px

Screenshots

image image

@brentspine
Copy link
Copy Markdown
Member

brentspine commented Jan 18, 2026

@copyandexecute Soll er Destination Branch auf 0.6.17 ändern?

@copyandexecute
Copy link
Copy Markdown
Contributor

wow looks good @sluhtie I'll review it soon

@copyandexecute copyandexecute changed the base branch from v3 to dev/0.6.18 January 26, 2026 21:09
@sluhtie
Copy link
Copy Markdown
Author

sluhtie commented Feb 2, 2026

Any updates here?

@brentspine
Copy link
Copy Markdown
Member

Gute Frage @copyandexecute

@copyandexecute
Copy link
Copy Markdown
Contributor

@sluhtie will be the next task after i18n support is finished

@copyandexecute
Copy link
Copy Markdown
Contributor

tbh its a valid pr... but it needs much more work by my side as font-minecraft is so weirdly coded.
I'll try it again

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.

5 participants