【发布时间】:2020-11-07 05:55:56
【问题描述】:
我尝试了很多方法
def set_toolbar_font_name(self, *args):
self.data_tables.table_data.font_name = "./fonts/Shivaji01.ttf"
但它们都没有工作!
【问题讨论】:
我尝试了很多方法
def set_toolbar_font_name(self, *args):
self.data_tables.table_data.font_name = "./fonts/Shivaji01.ttf"
但它们都没有工作!
【问题讨论】:
您不能使用font_name 属性为表格设置外部字体。只需对表格行使用标记 - https://kivy.org/doc/stable/api-kivy.core.text.markup.html
[font=<str>]Added in 1.1.0[/font]
Change the font (note: this refers to a TTF file or registered alias)
【讨论】:
0.104.2.dev0