Posts: 1,163
Joined: May 2008
Reputation:
7
Waffa
Posting Freak
Posts: 1,163
Yep, that would be awesome !
Posts: 82
Joined: Oct 2009
Reputation:
0
I would definitely make use of it.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
not a bad idea indeed.
kinda similar to how subtitle fonts are rendered maybe?
would be nice if skins could use something like it.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
Would be nice to have, I would drop current <shadowcolor> attribute and add this
<textshadow size="3" pos="0,2" blur="2">FF000000</textshadow>.
That would allow full freedom to skinners for adding glow, drop shadows etc.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Outline (as in the stuff the subs uses) is now more efficient as it's just rendering two times instead of lots. It would be a bit non-trivial to hook it up though I think, as there's currently separate routines needed if outlined (as you need to render twice). The shadow stuff might be able to be utilized though?
As for blur or anything like that, I think it requires rendering to a texture first, so that's quite a different change (and adding shaders to the mix might be quite tricky).
Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
Blur would be awesome, but having the outlines alone would be really great already. As long as we can have some control over the thickness and color of the outline I would most definitely use it. Using that combined with the shadows would open up lots of possibilities.
Posts: 201
Joined: May 2010
Reputation:
4
Can't you replicate outlines by duplicating the text control in question and making the resulting lower z-order one a bigger font size? From the sound of it this wouldn't even be inefficient compared to how XBMC handles subtitle rendering.
Posts: 201
Joined: May 2010
Reputation:
4
Increasing the font size by just one is a sure way to mess things up. For most fonts this results in characters which are 1pt wider and taller, which obviously does not allow for a clean outline. Also you need to adjust the letter spacing for this method to work properly.
You're right though. It's an awful hacky way of doing this and a native solution would be much preferable.
Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
2014-03-19, 16:33
(This post was last modified: 2014-03-19, 16:34 by Jeroen.)
We can't adjust letter spacing to the best of my knowledge. Increasing the font size more wouldn't do much good anyway. Thickness or thinness isn't the problem, the positioning is.