Move fonts to the onlyoffice build
11
server.js
@ -211,17 +211,6 @@ var send404 = function (res, path) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* All fonts file replaced by the list of fonts in ttf */
|
|
||||||
app.use("/common/onlyoffice/sdkjs/common/AllFonts.js",
|
|
||||||
Express.static("./www/common/onlyoffice/AllFonts.js"));
|
|
||||||
|
|
||||||
/* Replace fonts thumbnail call */
|
|
||||||
app.use("/common/onlyoffice/sdkjs/common/Images/fonts_thumbnail@2x.png",
|
|
||||||
Express.static("./www/common/onlyoffice/fonts_thumbnail@2x.png"));
|
|
||||||
app.use("/common/onlyoffice/sdkjs/common/Images/fonts_thumbnail.png",
|
|
||||||
Express.static("./www/common/onlyoffice/fonts_thumbnail.png"));
|
|
||||||
|
|
||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
res.status(404);
|
res.status(404);
|
||||||
send404(res, custom_four04_path);
|
send404(res, custom_four04_path);
|
||||||
|
|||||||
115
www/common/onlyoffice/sdkjs/common/AllFonts.js
Normal file
BIN
www/common/onlyoffice/sdkjs/common/Images/fonts_thumbnail.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
www/common/onlyoffice/sdkjs/common/Images/fonts_thumbnail@2x.png
Normal file
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |