Fonts picked by the correct formula

so i have font file in the fonts folder under (inside) the kustom folder however I created global variable of type font and made it formula used following formula file://Kustom/fonts/Zeyada-regular.ttf when gone out of formula editor screen it does show “Zeyada Regular” text on font variable value place thus it should be reading it correctly but when I use that global in text font it does not work. bug is reproducible.

Have you tried file://fonts/Zeyada-reguler.ttf ?

You cannot do this, if you want to change dynamically a font using a formula then use a kfile path (this is undocumented), so for the SD you can use:

kfile://org.kustom.sdcard.000/fonts/Zeyada-regular.ttf

Or if you want something more portable that will work regardless of where the font is

kfile://org.kustom.provider/fonts/Zeyada-regular.ttf

I haven’t tested this

1 Like

thank you so much for answer was looking for that specifically formula that gives font but this is better since you can also change it dynamically. I didn’t know it was possible. Again Thank you so much. :blush::blush:

I mostly keep all of kustom stuff in kustom folder in internal storage of phone so
second formula does work (I don’t keep font in sd card so not sure but it should work technically)

This topic was automatically closed 25 days after the last reply. New replies are no longer allowed.