帮助浏览器中的 Matlab 2015 字体大小
Matlab 2015 font size in Help browser
我有 Matlab R2015a。 Help browser 中的字体太小,没有增大的选项。他们说使用 ctrl 和 +,但是一旦你导航,字体就会恢复到它的小尺寸。
有没有办法永久增加字体?我知道有些设置可以通过代码更改,但我不知道该怎么做。
如您所述,可以在 site5.css 和 doc_center.css 中调整帮助字体大小。引用 Hans R 的 post 来自 this discussion:
For lasted versions of matlab, there is no 'HTML Proportional Text '
option.
Low level control of help font size can be found within:
%matlabroot%\help\includes\product\css\site5.css
/* Page Globals */ html { min-height:100%; margin-bottom:1px; } html
body { height:100%; padding:0px; margin:0px; font-family:Arial,
Helvetica, sans-serif; font-size:62.5%; color:#000; line-height:140%;
background:#fff; overflow-y:scroll; }
" change 'font-size:62.5%' to something larger, e.g. 'font-size:100%'
代码环境:
code environment is tweaked in the style file doc_center.css (same
folder as site5.css). Search for the line:
/* Fix for from site5, deprecating */ code { padding:0px;
margin:0px; color:inherit; font-size:12px; border:none;
background:transparent none; display:inline; }
I deleted the font-size setting from this line, which allowed the
environment to be set by the default setting in
site5.css.
在帮助中应该更改 Matlab 的字体大小 window。
blodoll 答案的替代方法。
在同一个文件中%matlabroot%\help\includes\product\css\site5.css
共有三行
* html pre { font-size:1.1em; }
* html tt { font-size:1.1em; }
* html code { font-size:1.1em; }
星号表示评论。通过删除星星取消注释,并按照您喜欢的方式调整大小。
如果您没有这些行,也许您可以尝试添加它们。
我的 site5.css
其中包含以下代码:
/* New Reset */
/* Reset */
pre { font-size:100%; }
tt { font-size:100%; }
code { font-size:100%; }
pre { font-size:1.2em; }
tt { font-size:1.2em; }
code { font-size:1.2em; }
html pre { font-size:1.1em; }
html tt { font-size:1.1em; }
html code { font-size:1.2em; }
pre { *font-size:1.1em; }
tt { *font-size:1.1em; }
code { *font-size:1.1em; }
pre { font-size:1.0em; }
tt { font-size:1.0em; }
code { font-size:1.0em; }
这表明 matlab 开发人员用它来代替贬值的 reset.css
。如果您的 site5.css
没有,请将其放在那里并调整适合您的方式。
我在 MATLAB 2016a 上使用了这种方式,幸运的是它工作正常。
要在帮助浏览器或 MATLAB Web 浏览器中调整字体大小,请右键单击页面并 select 放大或缩小。您不能更改字体类型或样式
我有 Matlab R2015a。 Help browser 中的字体太小,没有增大的选项。他们说使用 ctrl 和 +,但是一旦你导航,字体就会恢复到它的小尺寸。
有没有办法永久增加字体?我知道有些设置可以通过代码更改,但我不知道该怎么做。
如您所述,可以在 site5.css 和 doc_center.css 中调整帮助字体大小。引用 Hans R 的 post 来自 this discussion:
For lasted versions of matlab, there is no 'HTML Proportional Text ' option.
Low level control of help font size can be found within:
%matlabroot%\help\includes\product\css\site5.css
/* Page Globals */ html { min-height:100%; margin-bottom:1px; } html body { height:100%; padding:0px; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:62.5%; color:#000; line-height:140%; background:#fff; overflow-y:scroll; }
" change 'font-size:62.5%' to something larger, e.g. 'font-size:100%'
代码环境:
code environment is tweaked in the style file doc_center.css (same folder as site5.css). Search for the line:
/* Fix for from site5, deprecating */ code { padding:0px; margin:0px; color:inherit; font-size:12px; border:none; background:transparent none; display:inline; }
I deleted the font-size setting from this line, which allowed the environment to be set by the default setting in site5.css.
在帮助中应该更改 Matlab 的字体大小 window。
blodoll 答案的替代方法。
在同一个文件中%matlabroot%\help\includes\product\css\site5.css
共有三行
* html pre { font-size:1.1em; }
* html tt { font-size:1.1em; }
* html code { font-size:1.1em; }
星号表示评论。通过删除星星取消注释,并按照您喜欢的方式调整大小。 如果您没有这些行,也许您可以尝试添加它们。
我的 site5.css
其中包含以下代码:
/* New Reset */
/* Reset */
pre { font-size:100%; }
tt { font-size:100%; }
code { font-size:100%; }
pre { font-size:1.2em; }
tt { font-size:1.2em; }
code { font-size:1.2em; }
html pre { font-size:1.1em; }
html tt { font-size:1.1em; }
html code { font-size:1.2em; }
pre { *font-size:1.1em; }
tt { *font-size:1.1em; }
code { *font-size:1.1em; }
pre { font-size:1.0em; }
tt { font-size:1.0em; }
code { font-size:1.0em; }
这表明 matlab 开发人员用它来代替贬值的 reset.css
。如果您的 site5.css
没有,请将其放在那里并调整适合您的方式。
我在 MATLAB 2016a 上使用了这种方式,幸运的是它工作正常。
要在帮助浏览器或 MATLAB Web 浏览器中调整字体大小,请右键单击页面并 select 放大或缩小。您不能更改字体类型或样式