Just a quick question that might be obvious (sorry in advance!), does Kivy have support for Light and Condensed fonts?
I'm aware that Kivy has markup for things such as italics and bold, however is there something that allows you to render light or condensed fonts in KvLang? I haven't found anything online showing you how to use font family or font context (if these are even relevant) to do this or any alternative methods.
For Example, I'm currently wanting to use Bahnschrift Light SemiCondensed as a font - its part of the font family of Bahnschrift but I have no idea how to access the Light SemiCondensed version specifically as it is in the Bahnschrift.ttf file and throws an error if I try to put Bahnschrift Light SemiCondensed in the place of standard Bahnschrift(Ive tried spaces,dashes,no dashes, underscores etc but I'm probably doing this wrong since the semicondensed version isn't a standalone ttf file).
Inside the Bahnschrift ttf file there is all the different font weights/types but I've got no clue how to address one specifically.
(A quick note that I do have the font installed, and Kivy does recognize and render the regular version of Bahnschrift)
If there's any methods on how to do this I'd be really grateful to know how to do it!
test.py
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout
class Testkv(FloatLayout):
pass
class testApp(App):
def build(self):
return Testkv()
if __name__ == '__main__':
testApp().run()
test.kv
#:kivy 2.1.0
<Testkv>:
Label:
markup: True
text:'[font=Bahnschrift]hello[/font]' #Do I add something to the markup here or is there something completely different?
font_size: 44