首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Kivy:更改RstDocument标题字体

Kivy:更改RstDocument标题字体
EN

Stack Overflow用户
提问于 2017-07-30 10:14:18
回答 1查看 199关注 0票数 1

Kivy 1.10.0

Python 3.6

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

我看过一些代码,但我不是一个非常有经验的Python程序员,什么也找不到。

EN

回答 1

Stack Overflow用户

发布于 2017-07-30 14:59:09

您可以使用base_font_size

docs

代码语言:javascript
复制
base_font_size - Added in 1.8.0
Font size for the biggest title, 31 by default. All other font sizes are 
derived from this.

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

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45395726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档