It's possible to bundle web fonts to ttyd exetuable and use it, so that it won't need to be installed on the client side.
@font-face { font-family: 'My Font'; font-style: normal; font-weight: normal; src: url(...); }
src
--- a/html/webpack.config.js +++ b/html/webpack.config.js @@ -29,6 +29,10 @@ const baseConfig = { test: /\.s?[ac]ss$/, use: [devMode ? 'style-loader' : MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'], }, + { + test: /\.(ttf|otf|eot|woff|woff2)$/, + type: 'asset/inline', + }, ], }, resolve: {
start ttyd with -t "fontFamily=My Font".
-t "fontFamily=My Font"
There was an error while loading. Please reload this page.