Kodi Community Forum
WIP Very large font for screensaver. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: Screensavers and visualisations (https://forum.kodi.tv/forumdisplay.php?fid=38)
+---- Thread: WIP Very large font for screensaver. (/showthread.php?tid=154906)



Very large font for screensaver. - lorc - 2013-02-05

Hello.

I'm working on simple screensaver written in python that should display digital clock.
Currently, I just displaying time on label control. But largest font that I found in fonts.xml is WeatherTemp . It's size is only 80pt, so label with text "00:00:00" fills only ~20% of screen width. But I want label to fill whole screen.

Is there any way to define my own font in addon? I tried to put my fonts.xml into "720p" directory in my addon, but it does not work.

Alternatively, could someone suggest free LCD digits art to use in my screensaver instead of displaying text?
Also, is there any way to draw on screen from python? E.g. draw dots, lines, circles, render fonts, etc...


RE: Very large font for screensaver. - da-anda - 2013-02-05

yes, addons can create their own GUI - have f.e. a look at "the big picture" addon which is using this. There should also be documentation in our wiki.


RE: Very large font for screensaver. - lorc - 2013-02-05

I have checked the source for the "The Big Picture" addon. I see, that there are used custom fonts like "font48b", but I can't find where this font is declared. Search points only to "main.xml" where this font is used.
Could you please point me for a declaration of this font?