OpenSans not included in dist directory

Description

In the NPM package of Infusion, we include a dist directory with builds of Infusion and built assets, such as generated CSS files.

In the dist directory, the following Preferences Editor files make reference to the OpenSans font:

  • dist/assets/src/framework/preferences/css/SeparatedPanelPrefsEditor.css

  • dist/assets/src/framework/preferences/css/SeparatedPanelPrefsEditorFrame.css

And they do so via a relative URL such as:

  • src: url("../../../lib/opensans/fonts/OpenSans-SemiBold.woff");

However, OpenSans is not included in the dist directory and if the above CSS files are used in-place, the OpenSans font files will fail to load. The font files will be resolved relative to the location of the CSS files and fail to be found. For example at:

  • /infusion/dist/assets/src/lib/opensans/fonts/OpenSans-SemiBold.woff

Environment

None

Activity

Show:

Alan Harnum July 29, 2019 at 5:56 PM

This was done as part of the work in https://github.com/fluid-project/infusion/pull/956

Fixed

Details

Assignee

Reporter

Components

Priority

Created January 14, 2019 at 2:58 PM
Updated July 19, 2024 at 12:07 PM
Resolved July 29, 2019 at 5:56 PM