Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84830

Clock Screensaver

$
0
0
So, i found an snippet from Sphere for an python screensaver, using the default skinning engine.
So no more C++ dizzle for screensavers.

This was my first python experiment, so carefully opened up the code.

After an hour of cursing, testing, restarting i got it working:
[Image: screenshot002.png]
This is with font WeatherTemp (Default in confluence)

BUT:
I added an Font.xml and the fonts in the Font dir, but the fon't won't get loaded...
Instead xbmc uses the Fonts from skin instead of applying my fonts to the plugin

Font.xml
Code:
<fonts>
    <fontset id="Default" idloc="31390" unicode="true">
    <!-- Normal Fonts -->
         <font>
            <name>TimeLabel</name>
            <filename>Roboto-Regular.ttf</filename>
            <size>144</size>
        </font>
    </fontset>    
</fonts>
As soon i change the font to TimeLabel the size decreases alot.

Directory structure
Code:
.
├── LICENSE.txt
├── README.md
├── _screenshots
│   └── screenshot001.png
├── addon.xml
├── default.py
├── fanart.png
├── icon.png
└── resources
    ├── settings.xml
    └── skins
        └── default
            ├── 720p
            │   ├── Font.xml
            │   └── script-Clock Screensaver-main.xml
            ├── fonts
            │   ├── DejaVuSans-Bold-Caps.ttf
            │   ├── NOTICE.txt
            │   ├── README.txt
            │   ├── Roboto-Bold.ttf
            │   └── Roboto-Regular.ttf
            └── media
                └── black.png


So can anyone explain and / or help me how to increase the font size.

Viewing all articles
Browse latest Browse all 84830

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>