Affects Version/s: 7.0.X, 7.1.X, 7.2.X, 7.3.X, Master
Component/s: Dynamic CSS filter (sass)
- Add theme.css.fast.load.check.request.parameter=true to portal-ext.properties (in order to be able to use parameter css_fast_load in the url query string);
- Start Liferay Portal
- Deploy the attached classic-theme.war to Liferay Portal;
- Open the home page
Most of page text is in cursive font due to the use of Allison font.
The page text remains unchanged.
If the client sets css_fast_load=0 in the url query string (e.g. http://localhost:8080?css_fast_load=0), you will be able to see the text in cursive as expected, because the CSS won't be aggregated and the browser will be responsible to download the fonts correctly. When css_fast_load=1, the AggregatorFilter is called to aggregate the CSS content in a single file, but it ignores external urls, which makes the behavior inconsistent.
The current workaround is to download the font manually and add it to the theme source code and reference the relative path of the font using the $font-import-url variable in _clay_variables.scss.