Hi,
I am having some trouble trying to get fonts embedded into my HTML5 pano. All of the styles are being applied correctly except for the font. Right now I have the CSS in a data node, do I need to put the CSS in an external file for @font-face to work?
Right now my code looks something like this:
QuoteDisplay More<style name="mystyle" url="plugins/textfield.swf" />
<plugin name="project_text" devices="html5"
style="mystyle"
html="data:htmldata"
css="data:cssdata"
align="rightbottom" x="90" y="5"
backgroundcolor="0xFFFFFF"
width="300"
height="100"
/><data name="cssdata">
@font-face
{
font-family: Rothwell;
src: url('rothwell.otf') format('opentype'), url('rothwell.ttf') format('truetype');
}
p
{
font-family: Rothwell;
font-size: 24px;
color: #FF0000;
}
</data><data name="htmldata">
<p>Score: </p>
<br />
<p>0 / 12 </p>
</data>