欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

onlyoffice修改字号

程序员文章站 2022-03-03 09:02:17
...

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

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

字号 八号 七号 小六 六号 小五 五号 小四 四号 小三 三号 小二 二号 小一 一号 小初 初号
磅值 5 5.5 6.5 7.5 9 10.5 12 14 15 16 18 22 24 26 36 42
{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

1群将满可加2群【onlyoffice交流群2】:https://jq.qq.com/?_wv=1027&k=2uSJJPfr

更多内容请访问:IT源点
相关标签: onlyoffice