diff --git a/css/gantt.scss b/css/gantt.scss index d93f5a8..928c2fd 100644 --- a/css/gantt.scss +++ b/css/gantt.scss @@ -26,6 +26,38 @@ * ------------------------------------------------------------------------- */ +@font-face { + font-family: 'Inter'; + src: url('../fonts/Inter18pt-Regular.woff2') format('woff2'); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Inter'; + src: url('../fonts/Inter18pt-Medium.woff2') format('woff2'); + font-weight: 500; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Inter'; + src: url('../fonts/Inter18pt-SemiBold.woff2') format('woff2'); + font-weight: 600; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Inter'; + src: url('../fonts/Inter18pt-Bold.woff2') format('woff2'); + font-weight: 700; + font-style: normal; + font-display: swap; +} + @keyframes spin { 100% { transform: rotate(360deg); diff --git a/fonts/Inter18pt-Bold.woff2 b/fonts/Inter18pt-Bold.woff2 new file mode 100644 index 0000000..01ef4d2 Binary files /dev/null and b/fonts/Inter18pt-Bold.woff2 differ diff --git a/fonts/Inter18pt-Medium.woff2 b/fonts/Inter18pt-Medium.woff2 new file mode 100644 index 0000000..d99ec1b Binary files /dev/null and b/fonts/Inter18pt-Medium.woff2 differ diff --git a/fonts/Inter18pt-Regular.woff2 b/fonts/Inter18pt-Regular.woff2 new file mode 100644 index 0000000..804d74c Binary files /dev/null and b/fonts/Inter18pt-Regular.woff2 differ diff --git a/fonts/Inter18pt-SemiBold.woff2 b/fonts/Inter18pt-SemiBold.woff2 new file mode 100644 index 0000000..b29eaca Binary files /dev/null and b/fonts/Inter18pt-SemiBold.woff2 differ diff --git a/setup.php b/setup.php index 9dcbcf9..246b937 100644 --- a/setup.php +++ b/setup.php @@ -61,7 +61,7 @@ function plugin_init_gantt() $PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['gantt'][] = 'public/lib/libs.js'; $PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['gantt'][] = 'js/gantt-helper.js'; - $PLUGIN_HOOKS[Hooks::ADD_CSS]['gantt'][] = 'css/gantt.scss'; + $PLUGIN_HOOKS[Hooks::ADD_CSS]['gantt'][] = Plugin::getWebDir('gantt') . 'css/gantt.scss'; $PLUGIN_HOOKS[Hooks::REDEFINE_MENUS]['gantt'] = [ 'GlpiPlugin\Gantt\ProjectTab', diff --git a/webpack.config.js b/webpack.config.js index ccb93de..a86c447 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -58,7 +58,7 @@ module.exports = [ use: ['style-loader', 'css-loader'], }, { - test: /\.ttf$/, + test: /\.(ttf|woff|woff2)$/, use: ['file-loader'] }, ],