text outlines

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
Location: The Netherlands
Post: #1
Please consider the following for future development on the skinning engine.

I think a good addition to text shadows would be text outlines. They will especially be very useful for text on backdrops. On very light backgrounds adding shadows to the text will enhance readability a bit, but not enough.
Text outlines coupled with the ability to control the sharpness (or glow) would open up possibilities.

Something along the lines of:

<label>foo</label>
<textcolor>ffffffff</textcolor>
<textoutline size="2" glow="0.5">ff000000</textoutline>

Where adjusting the glow and size would allow variations like below.
[Image: f5roprxifzumirzti371.png]

greetings,
Jeroen
(This post was last modified: 2010-05-31 20:03 by Jeroen.)
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #2
Yep, that would be awesome !
find quote
Roders Offline
Member
Posts: 71
Joined: Oct 2009
Reputation: 0
Location: Northern Ireland
Post: #3
I would definitely make use of it.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,253
Joined: Jan 2009
Reputation: 108
Post: #4
not a bad idea indeed.
kinda similar to how subtitle fonts are rendered maybe?

would be nice if skins could use something like it.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #5
Outline is doable relatively easily (as pointed out, we use it for subs already), though it's quite clunky.

Glow looks as though it needs shader magic to do properly - outline already involves re-rendering the same text over and over, so using a shader might be a faster way to go in general - i.e. have separate shaders for "outline", "shadow", and "glow" effects.

Patches to address this are most welcome Smile

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
doestergaard Offline
Member
Posts: 83
Joined: Mar 2011
Reputation: 1
Location: Denmark
Post: #6
This might be overkill, but could you as a "workaround", put your text in a photoeditor, make the "fill" transparent and put on the shadow effect. Save it as an image, and place it exactly where your text is?

This might be hard with moving text, lolLaugh
find quote
ronie Offline
Team-XBMC Member
Posts: 8,253
Joined: Jan 2009
Reputation: 108
Post: #7
doestergaard Wrote:This might be overkill, but could you as a "workaround", put your text in a photoeditor, make the "fill" transparent and put on the shadow effect. Save it as an image, and place it exactly where your text is?

and do that again for every language xbmc supports ;-p

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
`Black Offline
Skilled Skinner
Posts: 2,002
Joined: Apr 2009
Reputation: 49
Location: Germany
Post: #8
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.

[Image: xp1080.png]
find quote