其他分享
首页 > 其他分享> > onlyoffice修改字号

onlyoffice修改字号

作者:互联网

原文同步自作者博客:https://www.daxueyiwu.com/post/758

:/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main/app.js 里找到{value:22,displayValue:"22"} 把displayValue对应的值换成汉字字体 小二等

其实中文数字(字号)和阿拉伯数字(磅值)表达的都是字体大小的意思,它们之间的对应关系如下表:

字号八号七号小六六号小五五号小四四号小三三号小二二号小一一号小初初号
磅值55.56.57.5910.512141516182224263642
{value:42,displayValue:"初号"},{value:36,displayValue:"小初"},
{value:26,displayValue:"一号"},{value:24,displayValue:"小一"},
{value:22,displayValue:"二号"},{value:18,displayValue:"小二"},
{value:16,displayValue:"三号"},{value:15,displayValue:"小三"},
{value:14,displayValue:"四号"},{value:12,displayValue:"小四"},
{value:10.5,displayValue:"五号"},{value:9,displayValue:"小五"},
{value:7.5,displayValue:"六号"},{value:6.5,displayValue:"小六"},
{value:5.5,displayValue:"七号"},{value:5,displayValue:"八号"},
{value:5,displayValue:"5"},{value:5.5,displayValue:"5.5"},
{value:6.5,displayValue:"6.5"},{value:7.5,displayValue:"8.5"},
{value:8,displayValue:"8"},{value:9,displayValue:"9"},
{value:10,displayValue:"10"},{value:10.5,displayValue:"10.5"},
{value:11,displayValue:"11"},{value:12,displayValue:"12"},
{value:14,displayValue:"14"},{value:16,displayValue:"16"},
{value:18,displayValue:"18"},{value:20,displayValue:"20"},
{value:22,displayValue:"22"},{value:24,displayValue:"24"},
{value:26,displayValue:"26"},{value:28,displayValue:"28"},
{value:36,displayValue:"36"},{value:48,displayValue:"48"},
{value:72,displayValue:"72"}

缩小下拉长度

{value:42,displayValue:"初号"},{value:36,displayValue:"小初"},
{value:26,displayValue:"一号"},{value:24,displayValue:"小一"},
{value:22,displayValue:"二号"},{value:18,displayValue:"小二"},
{value:16,displayValue:"三号"},{value:15,displayValue:"小三"},
{value:14,displayValue:"四号"},{value:12,displayValue:"小四"},
{value:10.5,displayValue:"五号"},{value:9,displayValue:"小五"},
{value:7.5,displayValue:"六号"},{value:6.5,displayValue:"小六"},
{value:5.5,displayValue:"七号"},{value:5,displayValue:"八号"},
{value:8,displayValue:"8"},{value:10,displayValue:"10"},
{value:20,displayValue:"20"},{value:28,displayValue:"28"},
{value:36,displayValue:"36"},{value:48,displayValue:"48"},
{value:72,displayValue:"72"}

docker cp ./app.js e19e6ac60aad:/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main

docker cp ./app.js.gz e19e6ac60aad:/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main

注意:

替换后要把app.js.gz文件删掉,或者把app.js文件压缩后替换,可以用7z压缩软件压缩。

有需要可以加群交流:点击链接加入群聊【onlyoffice交流群】:https://jq.qq.com/?_wv=1027&k=ozgBiZts

标签:22,apps,36,value,js,字号,修改,displayValue,onlyoffice
来源: https://blog.csdn.net/u013704252/article/details/117299407