Python 3.x Kivy:更改RST文档标题字体

Python 3.x Kivy:更改RST文档标题字体,python-3.x,kivy,Python 3.x,Kivy,基维1.10.0 Python 3.6 我想在使用RST文档时更改标题字体大小、颜色等。标题之间的默认差异非常小(只有较小的字体大小更改),如下所示 我已经浏览了一些代码,但我不是一个非常有经验的Python程序员,也没有找到任何东西。您可以使用base\u font\u size: 从: 有关更改每个标题/元素的颜色/样式的信息,请参见: colors Added in 1.1.0 Dictionary of all the colors used in the RST rendering.

基维1.10.0

Python 3.6

我想在使用RST文档时更改标题字体大小、颜色等。标题之间的默认差异非常小(只有较小的字体大小更改),如下所示


我已经浏览了一些代码,但我不是一个非常有经验的Python程序员,也没有找到任何东西。

您可以使用base\u font\u size

从:

有关更改每个标题/元素的颜色/样式的信息,请参见:

colors Added in 1.1.0
Dictionary of all the colors used in the RST rendering.

Warning
This dictionary is needs special handling. You also need to call RstDocument.render() if you change them after loading. colors is a DictProperty.

 underline_color Added in 1.1.0
 underline color of the titles, expressed in html color notation

您可以使用基本字体大小:

从:

有关更改每个标题/元素的颜色/样式的信息,请参见:

colors Added in 1.1.0
Dictionary of all the colors used in the RST rendering.

Warning
This dictionary is needs special handling. You also need to call RstDocument.render() if you change them after loading. colors is a DictProperty.

 underline_color Added in 1.1.0
 underline color of the titles, expressed in html color notation

谢谢,但我不确定这是不是我真正想要的。我希望对特定的标题标记呈现进行更改。例如,当我在上面的例子中使用标题3时,我希望文本是黑色的,更小,没有下划线。我想要一种方法来进入代码(通过截取默认输出,而不是更改核心代码),并将标题显示更改为我想要的任何内容。谢谢,但我不确定这是否真的是我想要的。我希望对特定的标题标记呈现进行更改。例如,当我在上面的例子中使用标题3时,我希望文本是黑色的,更小,没有下划线。我想找到一种方法来访问代码(通过截取默认输出,而不是更改核心代码),并将标题显示更改为我想要的任何内容。