elyra
elyra copied to clipboard
Elyra "blank screen" trying to download IBM Plex fonts from the internet
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
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"
}]