Topic: Font for captions in the mobile player

Hi, I understand that there are fewer options for mobile version of the player. I just want to confirm that setting the font for the captions is not one of those. Or would appreciate any guidance on how to do so.
Sorry if that has been answered before - I could not find this particular topic neither here nor in the FAQ.
Thanks in advance.

Last edited by skyredoubt (2011-07-05 15:01:58)

Re: Font for captions in the mobile player

There is no caption font setting for the Mobile Player.
However, you could use HTML formatting within the captions themselves to set the font face.
See here for details: … l#custom_1

<caption><![CDATA[<font face="Times">Caption Text Goes Here</font>]]></caption>
Steven Speirs
SimpleViewer Support Team.

Re: Font for captions in the mobile player

Thanks, Steven!
I guess this cannot be done for Flickr galleries, right?
Speaking of which, there is something called flickrViewer.php, which works with simpleviewer 1.8 and creates the image data xml from flickr on the fly. This could be configured to add HTML tags like fonts that you mentioned. You could then add the output from flickrViewer.php to the flash variable as the image path.
Could something similar be employed for the current version?

Re: Font for captions in the mobile player

You could use phpFlickr to dynamically create an XML file on the fly incorporating HTML formatting in the captions.
phpFlickr can be found here:
Instructions on 'How to display your Flickr images using PHP' can be found here: … -using-php

(1) Download phpFlickr from the link above and upload the files to your web server

(2) Use a PHP file as your galleryURL. Your embedding code would look something like this:

<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
<div id="sv-container"></div>

(3) Use the following as your 'gallery.php' file:

echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<simpleviewergallery title="SimpleViewer-Pro Gallery">';
$phpFlickrObj = new phpFlickr('your_Flickr_API_key_goes_here');
$user = $phpFlickrObj->people_findByUsername('your_Flickr_username_goes_here');
$photos = $phpFlickrObj->people_getPublicPhotos($user['id'], NULL, NULL, 500);
foreach ((array)$photos['photos']['photo'] as $photo)
  echo '<image imageURL="'.$phpFlickrObj->buildPhotoURL($photo, "large").'" thumbURL="'.$phpFlickrObj->buildPhotoURL($photo, "thumbnail").'" linkURL="" linkTarget="">';
  echo '<caption><![CDATA[<font face="Times">'.$photo['title'].'</font>]]></caption>';
  echo '</image>';

Please note that your web server must have PHP installed and you must have a Flickr API key.

Steven Speirs
SimpleViewer Support Team.

Re: Font for captions in the mobile player

Great, thanks a lot!
This is exactly what I need.