简体   繁体   中英

How to change the kivy text render from sdl2 to pango?

我需要将 kivy python 中的文本渲染从 sdl2 更改为 pango 文本渲染或文本提供程序,我该怎么做?

After insatlling pango, use this at the top of your file.

import os
os.environ['KIVY_TEXT'] = 'pango'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM