Skip to content

Add optional "Additional fonts" selection to Applications menu#4420

Open
Softer wants to merge 4 commits intoarchlinux:masterfrom
Softer:add-fonts-application
Open

Add optional "Additional fonts" selection to Applications menu#4420
Softer wants to merge 4 commits intoarchlinux:masterfrom
Softer:add-fonts-application

Conversation

@Softer
Copy link
Copy Markdown
Contributor

@Softer Softer commented Apr 13, 2026

Closes #4412

PR Description:

Adds a multi-select "Additional fonts" option to the Applications menu, allowing users to install common font packages during installation:

  • noto-fonts (Unicode font coverage for most languages)
  • noto-fonts-emoji (color emoji for browsers and apps)
  • noto-fonts-cjk (Chinese, Japanese, Korean characters)

Nothing is pre-selected - users pick what they need or skip entirely. Follows the same pattern as Audio, Bluetooth, and Firewall applications.

Tests and Checks

  • Open Applications -> Additional fonts -> select one or more -> install completes with packages
  • Skip fonts entirely -> no font packages installed
  • Save/load config with fonts_config via --config

@Softer Softer requested a review from Torxed as a code owner April 13, 2026 07:09
Copy link
Copy Markdown

@exilonium exilonium left a comment

Choose a reason for hiding this comment

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

lgtm

@svartkanin
Copy link
Copy Markdown
Collaborator

Thnks for the effort, I'll need some time to test it properly



async def select_fonts(preset: FontsConfiguration | None = None) -> FontsConfiguration | None:
descriptions = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we move this into the FontPackage itself I think that will make this more readable with a

class FontPackage(StrEnum):
...
	def description(self) -> str:
		match self:
			case FontPackage.NOTO:
				...
			case FontPackage.EMOJI:
				...
			case FontPackage.CJK:
				...

and then

	items = [MenuItem(f.description(), value=f) for f in FontPackage]
	group = MenuItemGroup(items)

there is also a helper function

MenuItemGroup.from_enum(FontPackage)

but that won't handle the custom description part, so we could enhance that with

	@classmethod
	def from_enum(
		cls,
		enum_cls: type[Enum],
		sort_items: bool = False,
		preset: Enum | None = None,
	) -> Self:
		text = elem.description() if hasattr(enum_cls, 'description') else elem.value
		items = [MenuItem(text, value=elem) for elem in enum_cls]

or something along those lines

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.

Add optional Fonts selection to Applications menu

3 participants