No Code Attached Yet
avatar sm8ps
sm8ps
20 Jul 2023

Steps to reproduce the issue

  • Install font locally under '/media/templates/site/cassiopeia/fonts/' and register it in '/media/templates/site/cassiopeia/css/user.css'
    • Verify that is is working by adding a rule to 'user.css'
  • Edit style of template Cassiopeia > Advanced > Fonts Scheme: select font

Expected result

The locally installed font should be listed under "Fonts from Folder".

Actual result

The only font listed under "Fonts from Folder" is "Roboto (local)".

System information (as much as possible)

Joomla 4.3.3 running on Apache/2.4.41 (Ubuntu) with PHP Version 8.0.29 (FPM/FastCGI).

Additional comments

BTW, I did add "woff2" to Templates: Styles (Site) > Templates > Valid Font Formats. IMHO this should included in the standard settings.

avatar sm8ps sm8ps - open - 20 Jul 2023
avatar sm8ps sm8ps - change - 20 Jul 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jul 2023
avatar sm8ps sm8ps - change - 20 Jul 2023
The description was changed
avatar sm8ps sm8ps - edited - 20 Jul 2023
avatar sm8ps sm8ps - change - 20 Jul 2023
The description was changed
avatar sm8ps sm8ps - edited - 20 Jul 2023
avatar sm8ps sm8ps - change - 20 Jul 2023
The description was changed
avatar sm8ps sm8ps - edited - 20 Jul 2023
avatar sm8ps
sm8ps - comment - 20 Jul 2023

Added additional comment about font format "woff2"


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41193.

avatar brianteeman
brianteeman - comment - 20 Jul 2023

There is no functionality to dynamically populate that list from the fonts in the folder. It would be a good addition

avatar richard67
richard67 - comment - 20 Jul 2023

You could create a child template and then edit the "useFontScheme" field in the templateDetails.xml file: https://github.com/joomla/joomla-cms/blob/4.3-dev/templates/cassiopeia/templateDetails.xml#L90-L104

avatar sm8ps
sm8ps - comment - 20 Jul 2023

Thanks @brianteeman, @richard67! Your points explain the situation and point me to a work-around.

avatar richard67
richard67 - comment - 20 Jul 2023

@sm8ps You could create a css file based on this one https://github.com/joomla/joomla-cms/blob/4.3-dev/build/media_source/templates/site/cassiopeia/scss/global/fonts-local_roboto.scss and use it in your child template's XML in the same way.

Can we close this issue now as it is not a core bug?

avatar sm8ps sm8ps - close - 20 Jul 2023
avatar sm8ps
sm8ps - comment - 20 Jul 2023

Sure! Done.

avatar sm8ps sm8ps - change - 20 Jul 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-07-20 11:16:16
Closed_By sm8ps

Add a Comment

Login with GitHub to post a comment