Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Changing skin font / using a webfont

5 replies [Last post]
Reply

Sorry if this has been answered elsewhere... searched but couldn't find it.

In a skin XML file there is
<setting name='font' value='_sans' />
I assume the value can be a stack of potentially available system fonts (eg 'tahoma,verdana,_sans'). True? Are double quotes legal? (eg 'tahoma,"lucida grande",_sans').

Also wondering if it's possible to use a webfont somehow (@font-face). Perhaps the @font-face is specified in the site CSS, then the identifier is placed in the XML (eg 'mywebfont,tahoma,_sans').

Thanks for your help!

Reply

The font options for skins can be found in the skinning guide: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/building-skins

So the only options are _sans, _serif and _typewriter

There are no plans for additional font options in the skin, that would simply add in too many KB to the player size (so load time) for a marginal benefit that isn't part of the video in the first place.

Reply

So, I had already skimmed that page and somehow missed that detail. Thank you for providing the link.

Understood and agreed about not embedding font choices... that would be silly. Just didn't know if it was possible to access system fonts through the player (like if the viewer has Verdana on their machine use that, or default to _sans). Pretty sure it's possible in general with Flash (certainly with HTML5), but not sure if the BotR JW Player supports it (perhaps undocumented).

Reply

Whoops, I wrote "So, ..." and meant "Sorry, ..." ... sorry! :-)

Reply

Also, another complication is that we have made skins cross compatible across the Flash and HTML5 player (this is not implemented in Bits on the Run yet). This means that font handling would also need to be synchronized across both players in order to keep things predictable, and this is more hassle than it's worth.

Reply

Yeah, supporting both Flash and HTML5 is a can of worms. Two cans, actually. The 2.0 skin system seems like a great platform and I look forward to seeing how it continues to evolve.

Thanks for following up.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options