Skip to content

Support declaring font faces in theme options - #2459

Merged
tf merged 2 commits into
codevise:masterfrom
tf:inline-font-faces
Aug 6, 2026
Merged

Support declaring font faces in theme options#2459
tf merged 2 commits into
codevise:masterfrom
tf:inline-font-faces

Conversation

@tf

@tf tf commented Aug 6, 2026

Copy link
Copy Markdown
Member

REDMINE-21330

tf added 2 commits August 6, 2026 11:32
Loading custom fonts required referencing a stylesheet pack, which
means a code deploy per font and an extra stylesheet request before
the browser can start downloading font files. Font faces can now be
declared in theme options instead, pointing either at files in the
theme's asset directory or at uploaded theme customization files.
The latter prepares letting admins upload fonts in site settings.

Loading fonts via stylesheet packs keeps working unchanged.

REDMINE-21330
Resolving a path in the shared theme directory stripped the prefix
from the string it was given. Callers passing the same string object
more than once - like theme options declaring font faces - got the
wrong directory on every render after the first.
@tf tf added this to the v17.2 milestone Aug 6, 2026
@tf
tf merged commit 94cbbf7 into codevise:master Aug 6, 2026
16 checks passed
@tf
tf deleted the inline-font-faces branch August 6, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant