level 9
茶之花314
楼主
MMA中设置字体是通过代码设置的,比如
Plot[Sin[x], {x, -\[Pi], \[Pi]},
PlotLabel -> Style["函数", FontFamily -> "方正舒体", 20, Bold, Black]]
就设置了 PlotLabel 的字体,然而需要手动输入字体名称,这是极为不方便的,以下教程来制作一个类似于“数学助手”的快速输入字体的面板
1、前端执行代码
CreatePalette[
Column[PasteButton[Style[
#, FontFamily -> #
], #,
ImageSize -> 200] & /@ $FontFamilies],
WindowElements -> {"VerticalScrollBar"}, WindowFloating -> True,
WindowTitle -> "Fonts"]
2、点击面板——安装面板,来源选择Fonts,名称Fonts,当前用户所有用户自己定,然后确定

这个时候面板菜单就有Fonts的面板了

2017年02月04日 08点02分
1
Plot[Sin[x], {x, -\[Pi], \[Pi]},
PlotLabel -> Style["函数", FontFamily -> "方正舒体", 20, Bold, Black]]
就设置了 PlotLabel 的字体,然而需要手动输入字体名称,这是极为不方便的,以下教程来制作一个类似于“数学助手”的快速输入字体的面板
1、前端执行代码
CreatePalette[
Column[PasteButton[Style[
#, FontFamily -> #
], #,
ImageSize -> 200] & /@ $FontFamilies],
WindowElements -> {"VerticalScrollBar"}, WindowFloating -> True,
WindowTitle -> "Fonts"]
2、点击面板——安装面板,来源选择Fonts,名称Fonts,当前用户所有用户自己定,然后确定

这个时候面板菜单就有Fonts的面板了
