elyra icon indicating copy to clipboard operation
elyra copied to clipboard

Elyra "blank screen" trying to download IBM Plex fonts from the internet

Open lresende opened this issue 3 years ago • 1 comments

Describe the issue Elyra "blank screen" trying to download IBM Plex fonts from the internet. This is very problematic if the environment does not have internet access.

url(https://fonts.gstatic.com/s/ibmplexsans/….. or have it bundled/installed with the image?

Expected behavior We should not depend on having internet access to build our UI and have these fonts as part of the npm package and/or container images

NOT A CONTRIBUTION

lresende avatar Dec 01 '22 17:12 lresende

For reference, response from canvas: In Modeler we set this before importing the carbon scss.

$font-path: "/canvas/fonts";
@import "carbon-components/scss/globals/scss/styles";
@import "carbon-components/scss/globals/grid/grid";

and in our build we copy all the fonts to the /canvas/fonts endpoint

				files: [{
					expand: true,
					flatten: false,
					cwd: "./node_modules/carbon-components/src/globals/",
					src: ["fonts/**/*"],
					dest: ".build"
				}]

marthacryan avatar Dec 01 '22 17:12 marthacryan