帮助浏览器中的Matlab 2015字体大小

时间:2015-05-24 20:09:58

标签: matlab fonts settings

我有Matlab R2015a。 Help browser中的字体大小太小,没有选项可以增加它。他们说使用ctrl和+,但是一旦你导航,字体就会回到它的缩小尺寸。

有没有办法永久增加字体?我知道某些设置可以通过代码更改,但我不知道如何执行此操作。

3 个答案:

答案 0 :(得分:5)

The help font size can be tweaked in the site5.css and doc_center.css as you mentioned. Quoting Hans R's post from 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%'

For code environment:

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.

Which should change Matlab's font size in the help window.

答案 1 :(得分:0)

替代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\9; }
tt { font-size:1.0em\9; }
code { font-size:1.0em\9; }

哪种建议,matlab开发人员使用它来替换折旧的reset.css。如果您的site5.css没有它,请将其放在那里并调整适合您的方式。

答案 2 :(得分:0)

我在MATLAB 2016a上使用这种方式,幸运的是它可以正常工作。

要在“帮助”浏览器或MATLAB Web浏览器中调整字体大小,请右键单击该页面,然后选择“放大”或“缩小”。您无法更改字体类型或样式