2006-06-23, 02:30
seems like a few script have some problems. not sure when this started happening. here's two examples... it is happening to a few other too.
Quote: controllist class.
controllist(
x, y, width, height, font, textcolor,
buttontexture, buttonfocustexture,
selectedcolor, imagewidth, imageheight,
itemtextxoffset, itemtextyoffset,
itemheight, space, alignmenty )
(jmarshall @ june 23 2006,04:14 Wrote:it's because they are relying on fonts existing in pm3, and the fonts were changed about a week or so ago.so it breaks perhaps 40% of the scripts out there? or have i misunderstood? if "font13" etc is gone which is what i understood from this, isn't there a way to make them "shortcuts" to new similar font in the new system in order to keep compatability? i guess there's someplace i could educate myself on this, but got no time to search right now...
i'm not sure of any way around this to be honest.
suggestions are most welcome.
Quote:controllist( x, y, width, height, "q:\\scripts\\myscript\\arial.ttf")
(phunck @ june 24 2006,06:52 Wrote:i think that xbmc should always select some fallback font if the requested can not be found. too bad if the size does not fit the gui,- it'll still be better than no font at all. another feature that would be nice: if we could specify a list of font-names instead of only one. xbmc could then use the first one that works. (sort of like how css stylesheets work)like windows has... there should be a 'universal' font folder and a failback font.
it would also be really nice if there was a shared resource for fonts, so that the available ones didn't depend on the skin. perhaps this 'sharedfonts' directory could be in addition to the skins font directory. the default fallback fonts could be in the 'sharedfonts' dir. in ooba i would have liked to be able to select a monospaced font so that i could display guitar tabs. a few different fonts like that could also be there.
i also like solexalex suggestion that a scripter could use his own fonts. perhaps wingdings would be great for some strange scripts?
a question: if you use a ttf, how do you select what size you want?
Quote:25-06-2006 added: font fallback to "font13" if a requested font isn't available.
(solexalex @ june 25 2006,13:38 Wrote:i'm not sure it is a good idea as every skin can choose its own font names... you'll have to keep uptodate as many versions as people use skins...that is a problem then... the fonts should be universal 'unless' the script or skin includes a font itself.
i developped many scripts, but i don't know at all what font names are available