Kodi Community Forum
pyxbmct font size - 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)
+--- Thread: pyxbmct font size (/showthread.php?tid=374867)



pyxbmct font size - Piero4556 - 2023-10-28

Hello ,

Where Do I find the list of font size values ?

https://romanvm.github.io/script.module.pyxbmct/_modules/pyxbmct/addonwindow.html#Label

for example this value return en error :
label_url = pyxbmct.Label(self.url, font=pyxbmct.font10, alignment=pyxbmct.ALIGN_CENTER)

AttributeError: module 'pyxbmct' has no attribute 'font10'


RE: pyxbmct font size - scott967 - 2023-11-01

I think (not sure) it inherits from the active skin font.xml fontset.  font13 is a generic that works in any skin.

scott s.
.


RE: pyxbmct font size - Piero4556 - 2023-11-01

Ok Thank you


RE: pyxbmct font size - Roman_V_M - 2023-11-08

pyxbmct definitely has no attribute font10. You can find specific font names somewhere in skin files (I don't know where exactly because I'm not a skinner), but those names are skin-dependent and you cannot rely on them. It is safe to say that addons have no custom fonts support.