2017-07-30 13 views
1

Kivy 1.10.0Kivy:変更RstDocumentヘッダフォント

パイソン3.6

IはRstDocumentsを使用する場合など、ヘッダフォントサイズ、色を変更したいです。下に見られるように、ヘッダーのデフォルトの違いは非常に小さい(フォントサイズの変更が小さい)。

enter image description here

私は、コードのいくつかを見てきたが、私は非常に経験豊富なPythonプログラマじゃないと何かを見つけることができませんでした。 docsから

答えて

0

あなたはbase_font_sizeを使用することができます

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. 

参照各ヘッダ/要素の色/スタイルを変更する:

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

ありがとうございましたが、私は」これが本当に私が探しているものなのかどうかわからない。私は、特定のヘッダーマークアップのレンダリングを変更しようとしています。たとえば、上記の例でヘッダー3を使用すると、テキストを黒く、小さく、下線なしにします。私は、(コアコードを変更するのではなく、デフォルトの出力を傍受して)コードを利用し、ヘッダーの表示を変更したいと思います。 – John

関連する問題